
#include <GL/glew.h>

#include <QtCore/QLibrary>

#include "cgexplicit.h"


PFNCGCREATECONTEXTPROC qcgCreateContext = (PFNCGCREATECONTEXTPROC)NULL;
PFNCGDESTROYCONTEXTPROC qcgDestroyContext = (PFNCGDESTROYCONTEXTPROC)NULL;
PFNCGISCONTEXTPROC qcgIsContext = (PFNCGISCONTEXTPROC)NULL;
PFNCGGETLASTLISTINGPROC qcgGetLastListing = (PFNCGGETLASTLISTINGPROC)NULL;
PFNCGSETLASTLISTINGPROC qcgSetLastListing = (PFNCGSETLASTLISTINGPROC)NULL;
PFNCGSETAUTOCOMPILEPROC qcgSetAutoCompile = (PFNCGSETAUTOCOMPILEPROC)NULL;
PFNCGGETAUTOCOMPILEPROC qcgGetAutoCompile = (PFNCGGETAUTOCOMPILEPROC)NULL;
PFNCGCREATEPROGRAMPROC qcgCreateProgram = (PFNCGCREATEPROGRAMPROC)NULL;
PFNCGCREATEPROGRAMFROMFILEPROC qcgCreateProgramFromFile = (PFNCGCREATEPROGRAMFROMFILEPROC)NULL;
PFNCGCOPYPROGRAMPROC qcgCopyProgram = (PFNCGCOPYPROGRAMPROC)NULL;
PFNCGDESTROYPROGRAMPROC qcgDestroyProgram = (PFNCGDESTROYPROGRAMPROC)NULL;
PFNCGGETFIRSTPROGRAMPROC qcgGetFirstProgram = (PFNCGGETFIRSTPROGRAMPROC)NULL;
PFNCGGETNEXTPROGRAMPROC qcgGetNextProgram = (PFNCGGETNEXTPROGRAMPROC)NULL;
PFNCGGETPROGRAMCONTEXTPROC qcgGetProgramContext = (PFNCGGETPROGRAMCONTEXTPROC)NULL;
PFNCGISPROGRAMPROC qcgIsProgram = (PFNCGISPROGRAMPROC)NULL;
PFNCGCOMPILEPROGRAMPROC qcgCompileProgram = (PFNCGCOMPILEPROGRAMPROC)NULL;
PFNCGISPROGRAMCOMPILEDPROC qcgIsProgramCompiled = (PFNCGISPROGRAMCOMPILEDPROC)NULL;
PFNCGGETPROGRAMSTRINGPROC qcgGetProgramString = (PFNCGGETPROGRAMSTRINGPROC)NULL;
PFNCGGETPROGRAMPROFILEPROC qcgGetProgramProfile = (PFNCGGETPROGRAMPROFILEPROC)NULL;
PFNCGGETPROGRAMOPTIONSPROC qcgGetProgramOptions = (PFNCGGETPROGRAMOPTIONSPROC)NULL;
PFNCGSETPROGRAMPROFILEPROC qcgSetProgramProfile = (PFNCGSETPROGRAMPROFILEPROC)NULL;
PFNCGSETPASSPROGRAMPARAMETERSPROC qcgSetPassProgramParameters = (PFNCGSETPASSPROGRAMPARAMETERSPROC)NULL;
PFNCGCREATEPARAMETERPROC qcgCreateParameter = (PFNCGCREATEPARAMETERPROC)NULL;
PFNCGCREATEPARAMETERARRAYPROC qcgCreateParameterArray = (PFNCGCREATEPARAMETERARRAYPROC)NULL;
PFNCGCREATEPARAMETERMULTIDIMARRAYPROC qcgCreateParameterMultiDimArray = (PFNCGCREATEPARAMETERMULTIDIMARRAYPROC)NULL;
PFNCGDESTROYPARAMETERPROC qcgDestroyParameter = (PFNCGDESTROYPARAMETERPROC)NULL;
PFNCGCONNECTPARAMETERPROC qcgConnectParameter = (PFNCGCONNECTPARAMETERPROC)NULL;
PFNCGDISCONNECTPARAMETERPROC qcgDisconnectParameter = (PFNCGDISCONNECTPARAMETERPROC)NULL;
PFNCGGETCONNECTEDPARAMETERPROC qcgGetConnectedParameter = (PFNCGGETCONNECTEDPARAMETERPROC)NULL;
PFNCGGETNUMCONNECTEDTOPARAMETERSPROC qcgGetNumConnectedToParameters = (PFNCGGETNUMCONNECTEDTOPARAMETERSPROC)NULL;
PFNCGGETCONNECTEDTOPARAMETERPROC qcgGetConnectedToParameter = (PFNCGGETCONNECTEDTOPARAMETERPROC)NULL;
PFNCGGETNAMEDPARAMETERPROC qcgGetNamedParameter = (PFNCGGETNAMEDPARAMETERPROC)NULL;
PFNCGGETNAMEDPROGRAMPARAMETERPROC qcgGetNamedProgramParameter = (PFNCGGETNAMEDPROGRAMPARAMETERPROC)NULL;
PFNCGGETFIRSTPARAMETERPROC qcgGetFirstParameter = (PFNCGGETFIRSTPARAMETERPROC)NULL;
PFNCGGETNEXTPARAMETERPROC qcgGetNextParameter = (PFNCGGETNEXTPARAMETERPROC)NULL;
PFNCGGETFIRSTLEAFPARAMETERPROC qcgGetFirstLeafParameter = (PFNCGGETFIRSTLEAFPARAMETERPROC)NULL;
PFNCGGETNEXTLEAFPARAMETERPROC qcgGetNextLeafParameter = (PFNCGGETNEXTLEAFPARAMETERPROC)NULL;
PFNCGGETFIRSTSTRUCTPARAMETERPROC qcgGetFirstStructParameter = (PFNCGGETFIRSTSTRUCTPARAMETERPROC)NULL;
PFNCGGETNAMEDSTRUCTPARAMETERPROC qcgGetNamedStructParameter = (PFNCGGETNAMEDSTRUCTPARAMETERPROC)NULL;
PFNCGGETFIRSTDEPENDENTPARAMETERPROC qcgGetFirstDependentParameter = (PFNCGGETFIRSTDEPENDENTPARAMETERPROC)NULL;
PFNCGGETARRAYPARAMETERPROC qcgGetArrayParameter = (PFNCGGETARRAYPARAMETERPROC)NULL;
PFNCGGETARRAYDIMENSIONPROC qcgGetArrayDimension = (PFNCGGETARRAYDIMENSIONPROC)NULL;
PFNCGGETARRAYTYPEPROC qcgGetArrayType = (PFNCGGETARRAYTYPEPROC)NULL;
PFNCGGETARRAYSIZEPROC qcgGetArraySize = (PFNCGGETARRAYSIZEPROC)NULL;
PFNCGGETARRAYTOTALSIZEPROC qcgGetArrayTotalSize = (PFNCGGETARRAYTOTALSIZEPROC)NULL;
PFNCGSETARRAYSIZEPROC qcgSetArraySize = (PFNCGSETARRAYSIZEPROC)NULL;
PFNCGSETMULTIDIMARRAYSIZEPROC qcgSetMultiDimArraySize = (PFNCGSETMULTIDIMARRAYSIZEPROC)NULL;
PFNCGGETPARAMETERPROGRAMPROC qcgGetParameterProgram = (PFNCGGETPARAMETERPROGRAMPROC)NULL;
PFNCGGETPARAMETERCONTEXTPROC qcgGetParameterContext = (PFNCGGETPARAMETERCONTEXTPROC)NULL;
PFNCGISPARAMETERPROC qcgIsParameter = (PFNCGISPARAMETERPROC)NULL;
PFNCGGETPARAMETERNAMEPROC qcgGetParameterName = (PFNCGGETPARAMETERNAMEPROC)NULL;
PFNCGGETPARAMETERTYPEPROC qcgGetParameterType = (PFNCGGETPARAMETERTYPEPROC)NULL;
PFNCGGETPARAMETERBASETYPEPROC qcgGetParameterBaseType = (PFNCGGETPARAMETERBASETYPEPROC)NULL;
PFNCGGETPARAMETERCLASSPROC qcgGetParameterClass = (PFNCGGETPARAMETERCLASSPROC)NULL;
PFNCGGETPARAMETERROWSPROC qcgGetParameterRows = (PFNCGGETPARAMETERROWSPROC)NULL;
PFNCGGETPARAMETERCOLUMNSPROC qcgGetParameterColumns = (PFNCGGETPARAMETERCOLUMNSPROC)NULL;
PFNCGGETPARAMETERNAMEDTYPEPROC qcgGetParameterNamedType = (PFNCGGETPARAMETERNAMEDTYPEPROC)NULL;
PFNCGGETPARAMETERSEMANTICPROC qcgGetParameterSemantic = (PFNCGGETPARAMETERSEMANTICPROC)NULL;
PFNCGGETPARAMETERRESOURCEPROC qcgGetParameterResource = (PFNCGGETPARAMETERRESOURCEPROC)NULL;
PFNCGGETPARAMETERBASERESOURCEPROC qcgGetParameterBaseResource = (PFNCGGETPARAMETERBASERESOURCEPROC)NULL;
PFNCGGETPARAMETERRESOURCEINDEXPROC qcgGetParameterResourceIndex = (PFNCGGETPARAMETERRESOURCEINDEXPROC)NULL;
PFNCGGETPARAMETERVARIABILITYPROC qcgGetParameterVariability = (PFNCGGETPARAMETERVARIABILITYPROC)NULL;
PFNCGGETPARAMETERDIRECTIONPROC qcgGetParameterDirection = (PFNCGGETPARAMETERDIRECTIONPROC)NULL;
PFNCGISPARAMETERREFERENCEDPROC qcgIsParameterReferenced = (PFNCGISPARAMETERREFERENCEDPROC)NULL;
PFNCGISPARAMETERUSEDPROC qcgIsParameterUsed = (PFNCGISPARAMETERUSEDPROC)NULL;
PFNCGGETPARAMETERVALUESPROC qcgGetParameterValues = (PFNCGGETPARAMETERVALUESPROC)NULL;
PFNCGSETPARAMETERVALUEDRPROC qcgSetParameterValuedr = (PFNCGSETPARAMETERVALUEDRPROC)NULL;
PFNCGSETPARAMETERVALUEDCPROC qcgSetParameterValuedc = (PFNCGSETPARAMETERVALUEDCPROC)NULL;
PFNCGSETPARAMETERVALUEFRPROC qcgSetParameterValuefr = (PFNCGSETPARAMETERVALUEFRPROC)NULL;
PFNCGSETPARAMETERVALUEFCPROC qcgSetParameterValuefc = (PFNCGSETPARAMETERVALUEFCPROC)NULL;
PFNCGSETPARAMETERVALUEIRPROC qcgSetParameterValueir = (PFNCGSETPARAMETERVALUEIRPROC)NULL;
PFNCGSETPARAMETERVALUEICPROC qcgSetParameterValueic = (PFNCGSETPARAMETERVALUEICPROC)NULL;
PFNCGGETPARAMETERVALUEDRPROC qcgGetParameterValuedr = (PFNCGGETPARAMETERVALUEDRPROC)NULL;
PFNCGGETPARAMETERVALUEDCPROC qcgGetParameterValuedc = (PFNCGGETPARAMETERVALUEDCPROC)NULL;
PFNCGGETPARAMETERVALUEFRPROC qcgGetParameterValuefr = (PFNCGGETPARAMETERVALUEFRPROC)NULL;
PFNCGGETPARAMETERVALUEFCPROC qcgGetParameterValuefc = (PFNCGGETPARAMETERVALUEFCPROC)NULL;
PFNCGGETPARAMETERVALUEIRPROC qcgGetParameterValueir = (PFNCGGETPARAMETERVALUEIRPROC)NULL;
PFNCGGETPARAMETERVALUEICPROC qcgGetParameterValueic = (PFNCGGETPARAMETERVALUEICPROC)NULL;
PFNCGGETSTRINGPARAMETERVALUEPROC qcgGetStringParameterValue = (PFNCGGETSTRINGPARAMETERVALUEPROC)NULL;
PFNCGSETSTRINGPARAMETERVALUEPROC qcgSetStringParameterValue = (PFNCGSETSTRINGPARAMETERVALUEPROC)NULL;
PFNCGGETPARAMETERORDINALNUMBERPROC qcgGetParameterOrdinalNumber = (PFNCGGETPARAMETERORDINALNUMBERPROC)NULL;
PFNCGISPARAMETERGLOBALPROC qcgIsParameterGlobal = (PFNCGISPARAMETERGLOBALPROC)NULL;
PFNCGGETPARAMETERINDEXPROC qcgGetParameterIndex = (PFNCGGETPARAMETERINDEXPROC)NULL;
PFNCGSETPARAMETERVARIABILITYPROC qcgSetParameterVariability = (PFNCGSETPARAMETERVARIABILITYPROC)NULL;
PFNCGSETPARAMETERSEMANTICPROC qcgSetParameterSemantic = (PFNCGSETPARAMETERSEMANTICPROC)NULL;
PFNCGSETPARAMETER1FPROC qcgSetParameter1f = (PFNCGSETPARAMETER1FPROC)NULL;
PFNCGSETPARAMETER2FPROC qcgSetParameter2f = (PFNCGSETPARAMETER2FPROC)NULL;
PFNCGSETPARAMETER3FPROC qcgSetParameter3f = (PFNCGSETPARAMETER3FPROC)NULL;
PFNCGSETPARAMETER4FPROC qcgSetParameter4f = (PFNCGSETPARAMETER4FPROC)NULL;
PFNCGSETPARAMETER1DPROC qcgSetParameter1d = (PFNCGSETPARAMETER1DPROC)NULL;
PFNCGSETPARAMETER2DPROC qcgSetParameter2d = (PFNCGSETPARAMETER2DPROC)NULL;
PFNCGSETPARAMETER3DPROC qcgSetParameter3d = (PFNCGSETPARAMETER3DPROC)NULL;
PFNCGSETPARAMETER4DPROC qcgSetParameter4d = (PFNCGSETPARAMETER4DPROC)NULL;
PFNCGSETPARAMETER1IPROC qcgSetParameter1i = (PFNCGSETPARAMETER1IPROC)NULL;
PFNCGSETPARAMETER2IPROC qcgSetParameter2i = (PFNCGSETPARAMETER2IPROC)NULL;
PFNCGSETPARAMETER3IPROC qcgSetParameter3i = (PFNCGSETPARAMETER3IPROC)NULL;
PFNCGSETPARAMETER4IPROC qcgSetParameter4i = (PFNCGSETPARAMETER4IPROC)NULL;
PFNCGSETPARAMETER1IVPROC qcgSetParameter1iv = (PFNCGSETPARAMETER1IVPROC)NULL;
PFNCGSETPARAMETER2IVPROC qcgSetParameter2iv = (PFNCGSETPARAMETER2IVPROC)NULL;
PFNCGSETPARAMETER3IVPROC qcgSetParameter3iv = (PFNCGSETPARAMETER3IVPROC)NULL;
PFNCGSETPARAMETER4IVPROC qcgSetParameter4iv = (PFNCGSETPARAMETER4IVPROC)NULL;
PFNCGSETPARAMETER1FVPROC qcgSetParameter1fv = (PFNCGSETPARAMETER1FVPROC)NULL;
PFNCGSETPARAMETER2FVPROC qcgSetParameter2fv = (PFNCGSETPARAMETER2FVPROC)NULL;
PFNCGSETPARAMETER3FVPROC qcgSetParameter3fv = (PFNCGSETPARAMETER3FVPROC)NULL;
PFNCGSETPARAMETER4FVPROC qcgSetParameter4fv = (PFNCGSETPARAMETER4FVPROC)NULL;
PFNCGSETPARAMETER1DVPROC qcgSetParameter1dv = (PFNCGSETPARAMETER1DVPROC)NULL;
PFNCGSETPARAMETER2DVPROC qcgSetParameter2dv = (PFNCGSETPARAMETER2DVPROC)NULL;
PFNCGSETPARAMETER3DVPROC qcgSetParameter3dv = (PFNCGSETPARAMETER3DVPROC)NULL;
PFNCGSETPARAMETER4DVPROC qcgSetParameter4dv = (PFNCGSETPARAMETER4DVPROC)NULL;
PFNCGSETMATRIXPARAMETERIRPROC qcgSetMatrixParameterir = (PFNCGSETMATRIXPARAMETERIRPROC)NULL;
PFNCGSETMATRIXPARAMETERDRPROC qcgSetMatrixParameterdr = (PFNCGSETMATRIXPARAMETERDRPROC)NULL;
PFNCGSETMATRIXPARAMETERFRPROC qcgSetMatrixParameterfr = (PFNCGSETMATRIXPARAMETERFRPROC)NULL;
PFNCGSETMATRIXPARAMETERICPROC qcgSetMatrixParameteric = (PFNCGSETMATRIXPARAMETERICPROC)NULL;
PFNCGSETMATRIXPARAMETERDCPROC qcgSetMatrixParameterdc = (PFNCGSETMATRIXPARAMETERDCPROC)NULL;
PFNCGSETMATRIXPARAMETERFCPROC qcgSetMatrixParameterfc = (PFNCGSETMATRIXPARAMETERFCPROC)NULL;
PFNCGGETMATRIXPARAMETERIRPROC qcgGetMatrixParameterir = (PFNCGGETMATRIXPARAMETERIRPROC)NULL;
PFNCGGETMATRIXPARAMETERDRPROC qcgGetMatrixParameterdr = (PFNCGGETMATRIXPARAMETERDRPROC)NULL;
PFNCGGETMATRIXPARAMETERFRPROC qcgGetMatrixParameterfr = (PFNCGGETMATRIXPARAMETERFRPROC)NULL;
PFNCGGETMATRIXPARAMETERICPROC qcgGetMatrixParameteric = (PFNCGGETMATRIXPARAMETERICPROC)NULL;
PFNCGGETMATRIXPARAMETERDCPROC qcgGetMatrixParameterdc = (PFNCGGETMATRIXPARAMETERDCPROC)NULL;
PFNCGGETMATRIXPARAMETERFCPROC qcgGetMatrixParameterfc = (PFNCGGETMATRIXPARAMETERFCPROC)NULL;
PFNCGGETTYPESTRINGPROC qcgGetTypeString = (PFNCGGETTYPESTRINGPROC)NULL;
PFNCGGETTYPEPROC qcgGetType = (PFNCGGETTYPEPROC)NULL;
PFNCGGETNAMEDUSERTYPEPROC qcgGetNamedUserType = (PFNCGGETNAMEDUSERTYPEPROC)NULL;
PFNCGGETNUMUSERTYPESPROC qcgGetNumUserTypes = (PFNCGGETNUMUSERTYPESPROC)NULL;
PFNCGGETUSERTYPEPROC qcgGetUserType = (PFNCGGETUSERTYPEPROC)NULL;
PFNCGGETNUMPARENTTYPESPROC qcgGetNumParentTypes = (PFNCGGETNUMPARENTTYPESPROC)NULL;
PFNCGGETPARENTTYPEPROC qcgGetParentType = (PFNCGGETPARENTTYPEPROC)NULL;
PFNCGISPARENTTYPEPROC qcgIsParentType = (PFNCGISPARENTTYPEPROC)NULL;
PFNCGISINTERFACETYPEPROC qcgIsInterfaceType = (PFNCGISINTERFACETYPEPROC)NULL;
PFNCGGETRESOURCESTRINGPROC qcgGetResourceString = (PFNCGGETRESOURCESTRINGPROC)NULL;
PFNCGGETRESOURCEPROC qcgGetResource = (PFNCGGETRESOURCEPROC)NULL;
PFNCGGETENUMSTRINGPROC qcgGetEnumString = (PFNCGGETENUMSTRINGPROC)NULL;
PFNCGGETENUMPROC qcgGetEnum = (PFNCGGETENUMPROC)NULL;
PFNCGGETPROFILESTRINGPROC qcgGetProfileString = (PFNCGGETPROFILESTRINGPROC)NULL;
PFNCGGETPROFILEPROC qcgGetProfile = (PFNCGGETPROFILEPROC)NULL;
PFNCGGETERRORPROC qcgGetError = (PFNCGGETERRORPROC)NULL;
PFNCGGETFIRSTERRORPROC qcgGetFirstError = (PFNCGGETFIRSTERRORPROC)NULL;
PFNCGGETERRORSTRINGPROC qcgGetErrorString = (PFNCGGETERRORSTRINGPROC)NULL;
PFNCGGETLASTERRORSTRINGPROC qcgGetLastErrorString = (PFNCGGETLASTERRORSTRINGPROC)NULL;
PFNCGSETERRORCALLBACKPROC qcgSetErrorCallback = (PFNCGSETERRORCALLBACKPROC)NULL;
PFNCGGETERRORCALLBACKPROC qcgGetErrorCallback = (PFNCGGETERRORCALLBACKPROC)NULL;
PFNCGSETERRORHANDLERPROC qcgSetErrorHandler = (PFNCGSETERRORHANDLERPROC)NULL;
PFNCGGETERRORHANDLERPROC qcgGetErrorHandler = (PFNCGGETERRORHANDLERPROC)NULL;
PFNCGGETSTRINGPROC qcgGetString = (PFNCGGETSTRINGPROC)NULL;
PFNCGCREATEEFFECTPROC qcgCreateEffect = (PFNCGCREATEEFFECTPROC)NULL;
PFNCGCREATEEFFECTFROMFILEPROC qcgCreateEffectFromFile = (PFNCGCREATEEFFECTFROMFILEPROC)NULL;
PFNCGDESTROYEFFECTPROC qcgDestroyEffect = (PFNCGDESTROYEFFECTPROC)NULL;
PFNCGGETEFFECTCONTEXTPROC qcgGetEffectContext = (PFNCGGETEFFECTCONTEXTPROC)NULL;
PFNCGISEFFECTPROC qcgIsEffect = (PFNCGISEFFECTPROC)NULL;
PFNCGGETFIRSTEFFECTPROC qcgGetFirstEffect = (PFNCGGETFIRSTEFFECTPROC)NULL;
PFNCGGETNEXTEFFECTPROC qcgGetNextEffect = (PFNCGGETNEXTEFFECTPROC)NULL;
PFNCGCREATEPROGRAMFROMEFFECTPROC qcgCreateProgramFromEffect = (PFNCGCREATEPROGRAMFROMEFFECTPROC)NULL;
PFNCGGETFIRSTTECHNIQUEPROC qcgGetFirstTechnique = (PFNCGGETFIRSTTECHNIQUEPROC)NULL;
PFNCGGETNEXTTECHNIQUEPROC qcgGetNextTechnique = (PFNCGGETNEXTTECHNIQUEPROC)NULL;
PFNCGGETNAMEDTECHNIQUEPROC qcgGetNamedTechnique = (PFNCGGETNAMEDTECHNIQUEPROC)NULL;
PFNCGGETTECHNIQUENAMEPROC qcgGetTechniqueName = (PFNCGGETTECHNIQUENAMEPROC)NULL;
PFNCGISTECHNIQUEPROC qcgIsTechnique = (PFNCGISTECHNIQUEPROC)NULL;
PFNCGVALIDATETECHNIQUEPROC qcgValidateTechnique = (PFNCGVALIDATETECHNIQUEPROC)NULL;
PFNCGISTECHNIQUEVALIDATEDPROC qcgIsTechniqueValidated = (PFNCGISTECHNIQUEVALIDATEDPROC)NULL;
PFNCGGETTECHNIQUEEFFECTPROC qcgGetTechniqueEffect = (PFNCGGETTECHNIQUEEFFECTPROC)NULL;
PFNCGGETFIRSTPASSPROC qcgGetFirstPass = (PFNCGGETFIRSTPASSPROC)NULL;
PFNCGGETNAMEDPASSPROC qcgGetNamedPass = (PFNCGGETNAMEDPASSPROC)NULL;
PFNCGGETNEXTPASSPROC qcgGetNextPass = (PFNCGGETNEXTPASSPROC)NULL;
PFNCGISPASSPROC qcgIsPass = (PFNCGISPASSPROC)NULL;
PFNCGGETPASSNAMEPROC qcgGetPassName = (PFNCGGETPASSNAMEPROC)NULL;
PFNCGGETPASSTECHNIQUEPROC qcgGetPassTechnique = (PFNCGGETPASSTECHNIQUEPROC)NULL;
PFNCGSETPASSSTATEPROC qcgSetPassState = (PFNCGSETPASSSTATEPROC)NULL;
PFNCGRESETPASSSTATEPROC qcgResetPassState = (PFNCGRESETPASSSTATEPROC)NULL;
PFNCGGETFIRSTSTATEASSIGNMENTPROC qcgGetFirstStateAssignment = (PFNCGGETFIRSTSTATEASSIGNMENTPROC)NULL;
PFNCGGETNAMEDSTATEASSIGNMENTPROC qcgGetNamedStateAssignment = (PFNCGGETNAMEDSTATEASSIGNMENTPROC)NULL;
PFNCGGETNEXTSTATEASSIGNMENTPROC qcgGetNextStateAssignment = (PFNCGGETNEXTSTATEASSIGNMENTPROC)NULL;
PFNCGISSTATEASSIGNMENTPROC qcgIsStateAssignment = (PFNCGISSTATEASSIGNMENTPROC)NULL;
PFNCGCALLSTATESETCALLBACKPROC qcgCallStateSetCallback = (PFNCGCALLSTATESETCALLBACKPROC)NULL;
PFNCGCALLSTATEVALIDATECALLBACKPROC qcgCallStateValidateCallback = (PFNCGCALLSTATEVALIDATECALLBACKPROC)NULL;
PFNCGCALLSTATERESETCALLBACKPROC qcgCallStateResetCallback = (PFNCGCALLSTATERESETCALLBACKPROC)NULL;
PFNCGGETSTATEASSIGNMENTPASSPROC qcgGetStateAssignmentPass = (PFNCGGETSTATEASSIGNMENTPASSPROC)NULL;
PFNCGGETSAMPLERSTATEASSIGNMENTPARAMETERPROC qcgGetSamplerStateAssignmentParameter = (PFNCGGETSAMPLERSTATEASSIGNMENTPARAMETERPROC)NULL;
PFNCGGETFLOATSTATEASSIGNMENTVALUESPROC qcgGetFloatStateAssignmentValues = (PFNCGGETFLOATSTATEASSIGNMENTVALUESPROC)NULL;
PFNCGGETINTSTATEASSIGNMENTVALUESPROC qcgGetIntStateAssignmentValues = (PFNCGGETINTSTATEASSIGNMENTVALUESPROC)NULL;
PFNCGGETBOOLSTATEASSIGNMENTVALUESPROC qcgGetBoolStateAssignmentValues = (PFNCGGETBOOLSTATEASSIGNMENTVALUESPROC)NULL;
PFNCGGETSTRINGSTATEASSIGNMENTVALUEPROC qcgGetStringStateAssignmentValue = (PFNCGGETSTRINGSTATEASSIGNMENTVALUEPROC)NULL;
PFNCGGETPROGRAMSTATEASSIGNMENTVALUEPROC qcgGetProgramStateAssignmentValue = (PFNCGGETPROGRAMSTATEASSIGNMENTVALUEPROC)NULL;
PFNCGGETTEXTURESTATEASSIGNMENTVALUEPROC qcgGetTextureStateAssignmentValue = (PFNCGGETTEXTURESTATEASSIGNMENTVALUEPROC)NULL;
PFNCGGETSAMPLERSTATEASSIGNMENTVALUEPROC qcgGetSamplerStateAssignmentValue = (PFNCGGETSAMPLERSTATEASSIGNMENTVALUEPROC)NULL;
PFNCGGETSTATEASSIGNMENTINDEXPROC qcgGetStateAssignmentIndex = (PFNCGGETSTATEASSIGNMENTINDEXPROC)NULL;
PFNCGGETNUMDEPENDENTSTATEASSIGNMENTPARAMETERSPROC qcgGetNumDependentStateAssignmentParameters = (PFNCGGETNUMDEPENDENTSTATEASSIGNMENTPARAMETERSPROC)NULL;
PFNCGGETDEPENDENTSTATEASSIGNMENTPARAMETERPROC qcgGetDependentStateAssignmentParameter = (PFNCGGETDEPENDENTSTATEASSIGNMENTPARAMETERPROC)NULL;
PFNCGGETSTATEASSIGNMENTSTATEPROC qcgGetStateAssignmentState = (PFNCGGETSTATEASSIGNMENTSTATEPROC)NULL;
PFNCGGETSAMPLERSTATEASSIGNMENTSTATEPROC qcgGetSamplerStateAssignmentState = (PFNCGGETSAMPLERSTATEASSIGNMENTSTATEPROC)NULL;
PFNCGCREATESTATEPROC qcgCreateState = (PFNCGCREATESTATEPROC)NULL;
PFNCGCREATEARRAYSTATEPROC qcgCreateArrayState = (PFNCGCREATEARRAYSTATEPROC)NULL;
PFNCGSETSTATECALLBACKSPROC qcgSetStateCallbacks = (PFNCGSETSTATECALLBACKSPROC)NULL;
PFNCGGETSTATESETCALLBACKPROC qcgGetStateSetCallback = (PFNCGGETSTATESETCALLBACKPROC)NULL;
PFNCGGETSTATERESETCALLBACKPROC qcgGetStateResetCallback = (PFNCGGETSTATERESETCALLBACKPROC)NULL;
PFNCGGETSTATEVALIDATECALLBACKPROC qcgGetStateValidateCallback = (PFNCGGETSTATEVALIDATECALLBACKPROC)NULL;
PFNCGGETSTATETYPEPROC qcgGetStateType = (PFNCGGETSTATETYPEPROC)NULL;
PFNCGGETSTATENAMEPROC qcgGetStateName = (PFNCGGETSTATENAMEPROC)NULL;
PFNCGGETSTATECONTEXTPROC qcgGetStateContext = (PFNCGGETSTATECONTEXTPROC)NULL;
PFNCGGETNAMEDSTATEPROC qcgGetNamedState = (PFNCGGETNAMEDSTATEPROC)NULL;
PFNCGGETFIRSTSTATEPROC qcgGetFirstState = (PFNCGGETFIRSTSTATEPROC)NULL;
PFNCGGETNEXTSTATEPROC qcgGetNextState = (PFNCGGETNEXTSTATEPROC)NULL;
PFNCGISSTATEPROC qcgIsState = (PFNCGISSTATEPROC)NULL;
PFNCGADDSTATEENUMERANTPROC qcgAddStateEnumerant = (PFNCGADDSTATEENUMERANTPROC)NULL;
PFNCGCREATESAMPLERSTATEPROC qcgCreateSamplerState = (PFNCGCREATESAMPLERSTATEPROC)NULL;
PFNCGCREATEARRAYSAMPLERSTATEPROC qcgCreateArraySamplerState = (PFNCGCREATEARRAYSAMPLERSTATEPROC)NULL;
PFNCGGETNAMEDSAMPLERSTATEPROC qcgGetNamedSamplerState = (PFNCGGETNAMEDSAMPLERSTATEPROC)NULL;
PFNCGGETFIRSTSAMPLERSTATEPROC qcgGetFirstSamplerState = (PFNCGGETFIRSTSAMPLERSTATEPROC)NULL;
PFNCGGETFIRSTSAMPLERSTATEASSIGNMENTPROC qcgGetFirstSamplerStateAssignment = (PFNCGGETFIRSTSAMPLERSTATEASSIGNMENTPROC)NULL;
PFNCGGETNAMEDSAMPLERSTATEASSIGNMENTPROC qcgGetNamedSamplerStateAssignment = (PFNCGGETNAMEDSAMPLERSTATEASSIGNMENTPROC)NULL;
PFNCGSETSAMPLERSTATEPROC qcgSetSamplerState = (PFNCGSETSAMPLERSTATEPROC)NULL;
PFNCGGETNAMEDEFFECTPARAMETERPROC qcgGetNamedEffectParameter = (PFNCGGETNAMEDEFFECTPARAMETERPROC)NULL;
PFNCGGETFIRSTLEAFEFFECTPARAMETERPROC qcgGetFirstLeafEffectParameter = (PFNCGGETFIRSTLEAFEFFECTPARAMETERPROC)NULL;
PFNCGGETFIRSTEFFECTPARAMETERPROC qcgGetFirstEffectParameter = (PFNCGGETFIRSTEFFECTPARAMETERPROC)NULL;
PFNCGGETEFFECTPARAMETERBYSEMANTICPROC qcgGetEffectParameterBySemantic = (PFNCGGETEFFECTPARAMETERBYSEMANTICPROC)NULL;
PFNCGGETFIRSTTECHNIQUEANNOTATIONPROC qcgGetFirstTechniqueAnnotation = (PFNCGGETFIRSTTECHNIQUEANNOTATIONPROC)NULL;
PFNCGGETFIRSTPASSANNOTATIONPROC qcgGetFirstPassAnnotation = (PFNCGGETFIRSTPASSANNOTATIONPROC)NULL;
PFNCGGETFIRSTPARAMETERANNOTATIONPROC qcgGetFirstParameterAnnotation = (PFNCGGETFIRSTPARAMETERANNOTATIONPROC)NULL;
PFNCGGETFIRSTPROGRAMANNOTATIONPROC qcgGetFirstProgramAnnotation = (PFNCGGETFIRSTPROGRAMANNOTATIONPROC)NULL;
PFNCGGETFIRSTEFFECTANNOTATIONPROC qcgGetFirstEffectAnnotation = (PFNCGGETFIRSTEFFECTANNOTATIONPROC)NULL;
PFNCGGETNEXTANNOTATIONPROC qcgGetNextAnnotation = (PFNCGGETNEXTANNOTATIONPROC)NULL;
PFNCGGETNAMEDTECHNIQUEANNOTATIONPROC qcgGetNamedTechniqueAnnotation = (PFNCGGETNAMEDTECHNIQUEANNOTATIONPROC)NULL;
PFNCGGETNAMEDPASSANNOTATIONPROC qcgGetNamedPassAnnotation = (PFNCGGETNAMEDPASSANNOTATIONPROC)NULL;
PFNCGGETNAMEDPARAMETERANNOTATIONPROC qcgGetNamedParameterAnnotation = (PFNCGGETNAMEDPARAMETERANNOTATIONPROC)NULL;
PFNCGGETNAMEDPROGRAMANNOTATIONPROC qcgGetNamedProgramAnnotation = (PFNCGGETNAMEDPROGRAMANNOTATIONPROC)NULL;
PFNCGGETNAMEDEFFECTANNOTATIONPROC qcgGetNamedEffectAnnotation = (PFNCGGETNAMEDEFFECTANNOTATIONPROC)NULL;
PFNCGISANNOTATIONPROC qcgIsAnnotation = (PFNCGISANNOTATIONPROC)NULL;
PFNCGGETANNOTATIONNAMEPROC qcgGetAnnotationName = (PFNCGGETANNOTATIONNAMEPROC)NULL;
PFNCGGETANNOTATIONTYPEPROC qcgGetAnnotationType = (PFNCGGETANNOTATIONTYPEPROC)NULL;
PFNCGGETFLOATANNOTATIONVALUESPROC qcgGetFloatAnnotationValues = (PFNCGGETFLOATANNOTATIONVALUESPROC)NULL;
PFNCGGETINTANNOTATIONVALUESPROC qcgGetIntAnnotationValues = (PFNCGGETINTANNOTATIONVALUESPROC)NULL;
PFNCGGETSTRINGANNOTATIONVALUEPROC qcgGetStringAnnotationValue = (PFNCGGETSTRINGANNOTATIONVALUEPROC)NULL;
PFNCGGETBOOLEANANNOTATIONVALUESPROC qcgGetBooleanAnnotationValues = (PFNCGGETBOOLEANANNOTATIONVALUESPROC)NULL;
PFNCGGETBOOLANNOTATIONVALUESPROC qcgGetBoolAnnotationValues = (PFNCGGETBOOLANNOTATIONVALUESPROC)NULL;
PFNCGGETNUMDEPENDENTANNOTATIONPARAMETERSPROC qcgGetNumDependentAnnotationParameters = (PFNCGGETNUMDEPENDENTANNOTATIONPARAMETERSPROC)NULL;
PFNCGGETDEPENDENTANNOTATIONPARAMETERPROC qcgGetDependentAnnotationParameter = (PFNCGGETDEPENDENTANNOTATIONPARAMETERPROC)NULL;
PFNCGEVALUATEPROGRAMPROC qcgEvaluateProgram = (PFNCGEVALUATEPROGRAMPROC)NULL;
PFNCGSETEFFECTNAMEPROC qcgSetEffectName = (PFNCGSETEFFECTNAMEPROC)NULL;
PFNCGGETEFFECTNAMEPROC qcgGetEffectName = (PFNCGGETEFFECTNAMEPROC)NULL;
PFNCGGETNAMEDEFFECTPROC qcgGetNamedEffect = (PFNCGGETNAMEDEFFECTPROC)NULL;
PFNCGCREATEEFFECTPARAMETERPROC qcgCreateEffectParameter = (PFNCGCREATEEFFECTPARAMETERPROC)NULL;
PFNCGCREATETECHNIQUEPROC qcgCreateTechnique = (PFNCGCREATETECHNIQUEPROC)NULL;
PFNCGCREATEPASSPROC qcgCreatePass = (PFNCGCREATEPASSPROC)NULL;
PFNCGCREATESTATEASSIGNMENTPROC qcgCreateStateAssignment = (PFNCGCREATESTATEASSIGNMENTPROC)NULL;
PFNCGCREATESTATEASSIGNMENTINDEXPROC qcgCreateStateAssignmentIndex = (PFNCGCREATESTATEASSIGNMENTINDEXPROC)NULL;
PFNCGCREATESAMPLERSTATEASSIGNMENTPROC qcgCreateSamplerStateAssignment = (PFNCGCREATESAMPLERSTATEASSIGNMENTPROC)NULL;
PFNCGSETFLOATSTATEASSIGNMENTPROC qcgSetFloatStateAssignment = (PFNCGSETFLOATSTATEASSIGNMENTPROC)NULL;
PFNCGSETINTSTATEASSIGNMENTPROC qcgSetIntStateAssignment = (PFNCGSETINTSTATEASSIGNMENTPROC)NULL;
PFNCGSETBOOLSTATEASSIGNMENTPROC qcgSetBoolStateAssignment = (PFNCGSETBOOLSTATEASSIGNMENTPROC)NULL;
PFNCGSETSTRINGSTATEASSIGNMENTPROC qcgSetStringStateAssignment = (PFNCGSETSTRINGSTATEASSIGNMENTPROC)NULL;
PFNCGSETPROGRAMSTATEASSIGNMENTPROC qcgSetProgramStateAssignment = (PFNCGSETPROGRAMSTATEASSIGNMENTPROC)NULL;
PFNCGSETSAMPLERSTATEASSIGNMENTPROC qcgSetSamplerStateAssignment = (PFNCGSETSAMPLERSTATEASSIGNMENTPROC)NULL;
PFNCGSETTEXTURESTATEASSIGNMENTPROC qcgSetTextureStateAssignment = (PFNCGSETTEXTURESTATEASSIGNMENTPROC)NULL;
PFNCGSETFLOATARRAYSTATEASSIGNMENTPROC qcgSetFloatArrayStateAssignment = (PFNCGSETFLOATARRAYSTATEASSIGNMENTPROC)NULL;
PFNCGSETINTARRAYSTATEASSIGNMENTPROC qcgSetIntArrayStateAssignment = (PFNCGSETINTARRAYSTATEASSIGNMENTPROC)NULL;
PFNCGSETBOOLARRAYSTATEASSIGNMENTPROC qcgSetBoolArrayStateAssignment = (PFNCGSETBOOLARRAYSTATEASSIGNMENTPROC)NULL;
PFNCGCREATETECHNIQUEANNOTATIONPROC qcgCreateTechniqueAnnotation = (PFNCGCREATETECHNIQUEANNOTATIONPROC)NULL;
PFNCGCREATEPASSANNOTATIONPROC qcgCreatePassAnnotation = (PFNCGCREATEPASSANNOTATIONPROC)NULL;
PFNCGCREATEPARAMETERANNOTATIONPROC qcgCreateParameterAnnotation = (PFNCGCREATEPARAMETERANNOTATIONPROC)NULL;
PFNCGCREATEPROGRAMANNOTATIONPROC qcgCreateProgramAnnotation = (PFNCGCREATEPROGRAMANNOTATIONPROC)NULL;
PFNCGCREATEEFFECTANNOTATIONPROC qcgCreateEffectAnnotation = (PFNCGCREATEEFFECTANNOTATIONPROC)NULL;
PFNCGSETINTANNOTATIONPROC qcgSetIntAnnotation = (PFNCGSETINTANNOTATIONPROC)NULL;
PFNCGSETFLOATANNOTATIONPROC qcgSetFloatAnnotation = (PFNCGSETFLOATANNOTATIONPROC)NULL;
PFNCGSETBOOLANNOTATIONPROC qcgSetBoolAnnotation = (PFNCGSETBOOLANNOTATIONPROC)NULL;
PFNCGSETSTRINGANNOTATIONPROC qcgSetStringAnnotation = (PFNCGSETSTRINGANNOTATIONPROC)NULL;
PFNCGGETSTATEENUMERANTNAMEPROC qcgGetStateEnumerantName = (PFNCGGETSTATEENUMERANTNAMEPROC)NULL;
PFNCGGETSTATEENUMERANTVALUEPROC qcgGetStateEnumerantValue = (PFNCGGETSTATEENUMERANTVALUEPROC)NULL;
PFNCGGETPARAMETEREFFECTPROC qcgGetParameterEffect = (PFNCGGETPARAMETEREFFECTPROC)NULL;
PFNCGGETTYPECLASSPROC qcgGetTypeClass = (PFNCGGETTYPECLASSPROC)NULL;
PFNCGGETTYPEBASEPROC qcgGetTypeBase = (PFNCGGETTYPEBASEPROC)NULL;
PFNCGGETTYPESIZESPROC qcgGetTypeSizes = (PFNCGGETTYPESIZESPROC)NULL;
PFNCGGETMATRIXSIZEPROC qcgGetMatrixSize = (PFNCGGETMATRIXSIZEPROC)NULL;
PFNCGGETPROFILEDOMAINPROC qcgGetProfileDomain = (PFNCGGETPROFILEDOMAINPROC)NULL;
PFNCGCOMBINEPROGRAMSPROC qcgCombinePrograms = (PFNCGCOMBINEPROGRAMSPROC)NULL;
PFNCGCOMBINEPROGRAMS2PROC qcgCombinePrograms2 = (PFNCGCOMBINEPROGRAMS2PROC)NULL;
PFNCGCOMBINEPROGRAMS3PROC qcgCombinePrograms3 = (PFNCGCOMBINEPROGRAMS3PROC)NULL;
PFNCGGETNUMPROGRAMDOMAINSPROC qcgGetNumProgramDomains = (PFNCGGETNUMPROGRAMDOMAINSPROC)NULL;
PFNCGGETPROGRAMDOMAINPROFILEPROC qcgGetProgramDomainProfile = (PFNCGGETPROGRAMDOMAINPROFILEPROC)NULL;
PFNCGCREATEEFFECTPARAMETERARRAYPROC qcgCreateEffectParameterArray = (PFNCGCREATEEFFECTPARAMETERARRAYPROC)NULL;
PFNCGCREATEEFFECTPARAMETERMULTIDIMARRAYPROC qcgCreateEffectParameterMultiDimArray = (PFNCGCREATEEFFECTPARAMETERMULTIDIMARRAYPROC)NULL;
PFNCGGETNAMEDSUBPARAMETERPROC qcgGetNamedSubParameter = (PFNCGGETNAMEDSUBPARAMETERPROC)NULL;
/*
PFNCGGETPROGRAMINPUTPROC qcgGetProgramInput = (PFNCGGETPROGRAMINPUTPROC)NULL;
PFNCGGETPROGRAMOUTPUTPROC qcgGetProgramOutput = (PFNCGGETPROGRAMOUTPUTPROC)NULL;
PFNCGCREATEOBJPROC qcgCreateObj = (PFNCGCREATEOBJPROC)NULL;
PFNCGCREATEOBJFROMFILEPROC qcgCreateObjFromFile = (PFNCGCREATEOBJFROMFILEPROC)NULL;
PFNCGDESTROYOBJPROC qcgDestroyObj = (PFNCGDESTROYOBJPROC)NULL;
PFNCGSETPARAMETERSETTINGMODEPROC qcgSetParameterSettingMode = (PFNCGSETPARAMETERSETTINGMODEPROC)NULL;
PFNCGGETPARAMETERSETTINGMODEPROC qcgGetParameterSettingMode = (PFNCGGETPARAMETERSETTINGMODEPROC)NULL;
PFNCGUPDATEPROGRAMPARAMETERSPROC qcgUpdateProgramParameters = (PFNCGUPDATEPROGRAMPARAMETERSPROC)NULL;
PFNCGSETLOCKINGPOLICYPROC qcgSetLockingPolicy = (PFNCGSETLOCKINGPOLICYPROC)NULL;
PFNCGGETLOCKINGPOLICYPROC qcgGetLockingPolicy = (PFNCGGETLOCKINGPOLICYPROC)NULL;
PFNCGSETSEMANTICCASEPOLICYPROC qcgSetSemanticCasePolicy = (PFNCGSETSEMANTICCASEPOLICYPROC)NULL;
PFNCGGETSEMANTICCASEPOLICYPROC qcgGetSemanticCasePolicy = (PFNCGGETSEMANTICCASEPOLICYPROC)NULL;
PFNCGGETCONNECTEDSTATEASSIGNMENTPARAMETERPROC qcgGetConnectedStateAssignmentParameter = (PFNCGGETCONNECTEDSTATEASSIGNMENTPARAMETERPROC)NULL;
PFNCGGETSTRINGANNOTATIONVALUESPROC qcgGetStringAnnotationValues = (PFNCGGETSTRINGANNOTATIONVALUESPROC)NULL;
PFNCGSETBUFFERDATAPROC qcgSetBufferData = (PFNCGSETBUFFERDATAPROC)NULL;
PFNCGSETBUFFERSUBDATAPROC qcgSetBufferSubData = (PFNCGSETBUFFERSUBDATAPROC)NULL;
PFNCGCREATEBUFFERPROC qcgCreateBuffer = (PFNCGCREATEBUFFERPROC)NULL;
PFNCGDESTROYBUFFERPROC qcgDestroyBuffer = (PFNCGDESTROYBUFFERPROC)NULL;
PFNCGGETBUFFERSIZEPROC qcgGetBufferSize = (PFNCGGETBUFFERSIZEPROC)NULL;
PFNCGGETPARAMETERBUFFERINDEXPROC qcgGetParameterBufferIndex = (PFNCGGETPARAMETERBUFFERINDEXPROC)NULL;
PFNCGGETPARAMETERBUFFEROFFSETPROC qcgGetParameterBufferOffset = (PFNCGGETPARAMETERBUFFEROFFSETPROC)NULL;
PFNCGGETPARAMETERRESOURCESIZEPROC qcgGetParameterResourceSize = (PFNCGGETPARAMETERRESOURCESIZEPROC)NULL;
PFNCGGETPROGRAMBUFFERPROC qcgGetProgramBuffer = (PFNCGGETPROGRAMBUFFERPROC)NULL;
PFNCGMAPBUFFERPROC qcgMapBuffer = (PFNCGMAPBUFFERPROC)NULL;
PFNCGSETPROGRAMBUFFERPROC qcgSetProgramBuffer = (PFNCGSETPROGRAMBUFFERPROC)NULL;
PFNCGUNMAPBUFFERPROC qcgUnmapBuffer = (PFNCGUNMAPBUFFERPROC)NULL;
*/

PFNCGGLISPROFILESUPPORTEDPROC qcgGLIsProfileSupported = (PFNCGGLISPROFILESUPPORTEDPROC)NULL;
PFNCGGLENABLEPROFILEPROC qcgGLEnableProfile = (PFNCGGLENABLEPROFILEPROC)NULL;
PFNCGGLDISABLEPROFILEPROC qcgGLDisableProfile = (PFNCGGLDISABLEPROFILEPROC)NULL;
PFNCGGLGETLATESTPROFILEPROC qcgGLGetLatestProfile = (PFNCGGLGETLATESTPROFILEPROC)NULL;
PFNCGGLSETOPTIMALOPTIONSPROC qcgGLSetOptimalOptions = (PFNCGGLSETOPTIMALOPTIONSPROC)NULL;
PFNCGGLLOADPROGRAMPROC qcgGLLoadProgram = (PFNCGGLLOADPROGRAMPROC)NULL;
PFNCGGLISPROGRAMLOADEDPROC qcgGLIsProgramLoaded = (PFNCGGLISPROGRAMLOADEDPROC)NULL;
PFNCGGLBINDPROGRAMPROC qcgGLBindProgram = (PFNCGGLBINDPROGRAMPROC)NULL;
PFNCGGLUNBINDPROGRAMPROC qcgGLUnbindProgram = (PFNCGGLUNBINDPROGRAMPROC)NULL;
PFNCGGLGETPROGRAMIDPROC qcgGLGetProgramID = (PFNCGGLGETPROGRAMIDPROC)NULL;
PFNCGGLSETPARAMETER1FPROC qcgGLSetParameter1f = (PFNCGGLSETPARAMETER1FPROC)NULL;
PFNCGGLSETPARAMETER2FPROC qcgGLSetParameter2f = (PFNCGGLSETPARAMETER2FPROC)NULL;
PFNCGGLSETPARAMETER3FPROC qcgGLSetParameter3f = (PFNCGGLSETPARAMETER3FPROC)NULL;
PFNCGGLSETPARAMETER4FPROC qcgGLSetParameter4f = (PFNCGGLSETPARAMETER4FPROC)NULL;
PFNCGGLSETPARAMETER1FVPROC qcgGLSetParameter1fv = (PFNCGGLSETPARAMETER1FVPROC)NULL;
PFNCGGLSETPARAMETER2FVPROC qcgGLSetParameter2fv = (PFNCGGLSETPARAMETER2FVPROC)NULL;
PFNCGGLSETPARAMETER3FVPROC qcgGLSetParameter3fv = (PFNCGGLSETPARAMETER3FVPROC)NULL;
PFNCGGLSETPARAMETER4FVPROC qcgGLSetParameter4fv = (PFNCGGLSETPARAMETER4FVPROC)NULL;
PFNCGGLSETPARAMETER1DPROC qcgGLSetParameter1d = (PFNCGGLSETPARAMETER1DPROC)NULL;
PFNCGGLSETPARAMETER2DPROC qcgGLSetParameter2d = (PFNCGGLSETPARAMETER2DPROC)NULL;
PFNCGGLSETPARAMETER3DPROC qcgGLSetParameter3d = (PFNCGGLSETPARAMETER3DPROC)NULL;
PFNCGGLSETPARAMETER4DPROC qcgGLSetParameter4d = (PFNCGGLSETPARAMETER4DPROC)NULL;
PFNCGGLSETPARAMETER1DVPROC qcgGLSetParameter1dv = (PFNCGGLSETPARAMETER1DVPROC)NULL;
PFNCGGLSETPARAMETER2DVPROC qcgGLSetParameter2dv = (PFNCGGLSETPARAMETER2DVPROC)NULL;
PFNCGGLSETPARAMETER3DVPROC qcgGLSetParameter3dv = (PFNCGGLSETPARAMETER3DVPROC)NULL;
PFNCGGLSETPARAMETER4DVPROC qcgGLSetParameter4dv = (PFNCGGLSETPARAMETER4DVPROC)NULL;
PFNCGGLGETPARAMETER1FPROC qcgGLGetParameter1f = (PFNCGGLGETPARAMETER1FPROC)NULL;
PFNCGGLGETPARAMETER2FPROC qcgGLGetParameter2f = (PFNCGGLGETPARAMETER2FPROC)NULL;
PFNCGGLGETPARAMETER3FPROC qcgGLGetParameter3f = (PFNCGGLGETPARAMETER3FPROC)NULL;
PFNCGGLGETPARAMETER4FPROC qcgGLGetParameter4f = (PFNCGGLGETPARAMETER4FPROC)NULL;
PFNCGGLGETPARAMETER1DPROC qcgGLGetParameter1d = (PFNCGGLGETPARAMETER1DPROC)NULL;
PFNCGGLGETPARAMETER2DPROC qcgGLGetParameter2d = (PFNCGGLGETPARAMETER2DPROC)NULL;
PFNCGGLGETPARAMETER3DPROC qcgGLGetParameter3d = (PFNCGGLGETPARAMETER3DPROC)NULL;
PFNCGGLGETPARAMETER4DPROC qcgGLGetParameter4d = (PFNCGGLGETPARAMETER4DPROC)NULL;
PFNCGGLSETPARAMETERARRAY1FPROC qcgGLSetParameterArray1f = (PFNCGGLSETPARAMETERARRAY1FPROC)NULL;
PFNCGGLSETPARAMETERARRAY2FPROC qcgGLSetParameterArray2f = (PFNCGGLSETPARAMETERARRAY2FPROC)NULL;
PFNCGGLSETPARAMETERARRAY3FPROC qcgGLSetParameterArray3f = (PFNCGGLSETPARAMETERARRAY3FPROC)NULL;
PFNCGGLSETPARAMETERARRAY4FPROC qcgGLSetParameterArray4f = (PFNCGGLSETPARAMETERARRAY4FPROC)NULL;
PFNCGGLSETPARAMETERARRAY1DPROC qcgGLSetParameterArray1d = (PFNCGGLSETPARAMETERARRAY1DPROC)NULL;
PFNCGGLSETPARAMETERARRAY2DPROC qcgGLSetParameterArray2d = (PFNCGGLSETPARAMETERARRAY2DPROC)NULL;
PFNCGGLSETPARAMETERARRAY3DPROC qcgGLSetParameterArray3d = (PFNCGGLSETPARAMETERARRAY3DPROC)NULL;
PFNCGGLSETPARAMETERARRAY4DPROC qcgGLSetParameterArray4d = (PFNCGGLSETPARAMETERARRAY4DPROC)NULL;
PFNCGGLGETPARAMETERARRAY1FPROC qcgGLGetParameterArray1f = (PFNCGGLGETPARAMETERARRAY1FPROC)NULL;
PFNCGGLGETPARAMETERARRAY2FPROC qcgGLGetParameterArray2f = (PFNCGGLGETPARAMETERARRAY2FPROC)NULL;
PFNCGGLGETPARAMETERARRAY3FPROC qcgGLGetParameterArray3f = (PFNCGGLGETPARAMETERARRAY3FPROC)NULL;
PFNCGGLGETPARAMETERARRAY4FPROC qcgGLGetParameterArray4f = (PFNCGGLGETPARAMETERARRAY4FPROC)NULL;
PFNCGGLGETPARAMETERARRAY1DPROC qcgGLGetParameterArray1d = (PFNCGGLGETPARAMETERARRAY1DPROC)NULL;
PFNCGGLGETPARAMETERARRAY2DPROC qcgGLGetParameterArray2d = (PFNCGGLGETPARAMETERARRAY2DPROC)NULL;
PFNCGGLGETPARAMETERARRAY3DPROC qcgGLGetParameterArray3d = (PFNCGGLGETPARAMETERARRAY3DPROC)NULL;
PFNCGGLGETPARAMETERARRAY4DPROC qcgGLGetParameterArray4d = (PFNCGGLGETPARAMETERARRAY4DPROC)NULL;
PFNCGGLSETPARAMETERPOINTERPROC qcgGLSetParameterPointer = (PFNCGGLSETPARAMETERPOINTERPROC)NULL;
PFNCGGLENABLECLIENTSTATEPROC qcgGLEnableClientState = (PFNCGGLENABLECLIENTSTATEPROC)NULL;
PFNCGGLDISABLECLIENTSTATEPROC qcgGLDisableClientState = (PFNCGGLDISABLECLIENTSTATEPROC)NULL;
PFNCGGLSETMATRIXPARAMETERDRPROC qcgGLSetMatrixParameterdr = (PFNCGGLSETMATRIXPARAMETERDRPROC)NULL;
PFNCGGLSETMATRIXPARAMETERFRPROC qcgGLSetMatrixParameterfr = (PFNCGGLSETMATRIXPARAMETERFRPROC)NULL;
PFNCGGLSETMATRIXPARAMETERDCPROC qcgGLSetMatrixParameterdc = (PFNCGGLSETMATRIXPARAMETERDCPROC)NULL;
PFNCGGLSETMATRIXPARAMETERFCPROC qcgGLSetMatrixParameterfc = (PFNCGGLSETMATRIXPARAMETERFCPROC)NULL;
PFNCGGLGETMATRIXPARAMETERDRPROC qcgGLGetMatrixParameterdr = (PFNCGGLGETMATRIXPARAMETERDRPROC)NULL;
PFNCGGLGETMATRIXPARAMETERFRPROC qcgGLGetMatrixParameterfr = (PFNCGGLGETMATRIXPARAMETERFRPROC)NULL;
PFNCGGLGETMATRIXPARAMETERDCPROC qcgGLGetMatrixParameterdc = (PFNCGGLGETMATRIXPARAMETERDCPROC)NULL;
PFNCGGLGETMATRIXPARAMETERFCPROC qcgGLGetMatrixParameterfc = (PFNCGGLGETMATRIXPARAMETERFCPROC)NULL;
PFNCGGLSETSTATEMATRIXPARAMETERPROC qcgGLSetStateMatrixParameter = (PFNCGGLSETSTATEMATRIXPARAMETERPROC)NULL;
PFNCGGLSETMATRIXPARAMETERARRAYFCPROC qcgGLSetMatrixParameterArrayfc = (PFNCGGLSETMATRIXPARAMETERARRAYFCPROC)NULL;
PFNCGGLSETMATRIXPARAMETERARRAYFRPROC qcgGLSetMatrixParameterArrayfr = (PFNCGGLSETMATRIXPARAMETERARRAYFRPROC)NULL;
PFNCGGLSETMATRIXPARAMETERARRAYDCPROC qcgGLSetMatrixParameterArraydc = (PFNCGGLSETMATRIXPARAMETERARRAYDCPROC)NULL;
PFNCGGLSETMATRIXPARAMETERARRAYDRPROC qcgGLSetMatrixParameterArraydr = (PFNCGGLSETMATRIXPARAMETERARRAYDRPROC)NULL;
PFNCGGLGETMATRIXPARAMETERARRAYFCPROC qcgGLGetMatrixParameterArrayfc = (PFNCGGLGETMATRIXPARAMETERARRAYFCPROC)NULL;
PFNCGGLGETMATRIXPARAMETERARRAYFRPROC qcgGLGetMatrixParameterArrayfr = (PFNCGGLGETMATRIXPARAMETERARRAYFRPROC)NULL;
PFNCGGLGETMATRIXPARAMETERARRAYDCPROC qcgGLGetMatrixParameterArraydc = (PFNCGGLGETMATRIXPARAMETERARRAYDCPROC)NULL;
PFNCGGLGETMATRIXPARAMETERARRAYDRPROC qcgGLGetMatrixParameterArraydr = (PFNCGGLGETMATRIXPARAMETERARRAYDRPROC)NULL;
PFNCGGLSETTEXTUREPARAMETERPROC qcgGLSetTextureParameter = (PFNCGGLSETTEXTUREPARAMETERPROC)NULL;
PFNCGGLGETTEXTUREPARAMETERPROC qcgGLGetTextureParameter = (PFNCGGLGETTEXTUREPARAMETERPROC)NULL;
PFNCGGLENABLETEXTUREPARAMETERPROC qcgGLEnableTextureParameter = (PFNCGGLENABLETEXTUREPARAMETERPROC)NULL;
PFNCGGLDISABLETEXTUREPARAMETERPROC qcgGLDisableTextureParameter = (PFNCGGLDISABLETEXTUREPARAMETERPROC)NULL;
PFNCGGLGETTEXTUREENUMPROC qcgGLGetTextureEnum = (PFNCGGLGETTEXTUREENUMPROC)NULL;
PFNCGGLSETMANAGETEXTUREPARAMETERSPROC qcgGLSetManageTextureParameters = (PFNCGGLSETMANAGETEXTUREPARAMETERSPROC)NULL;
PFNCGGLGETMANAGETEXTUREPARAMETERSPROC qcgGLGetManageTextureParameters = (PFNCGGLGETMANAGETEXTUREPARAMETERSPROC)NULL;
PFNCGGLSETUPSAMPLERPROC qcgGLSetupSampler = (PFNCGGLSETUPSAMPLERPROC)NULL;
PFNCGGLREGISTERSTATESPROC qcgGLRegisterStates = (PFNCGGLREGISTERSTATESPROC)NULL;
PFNCGGLENABLEPROGRAMPROFILESPROC qcgGLEnableProgramProfiles = (PFNCGGLENABLEPROGRAMPROFILESPROC)NULL;
PFNCGGLDISABLEPROGRAMPROFILESPROC qcgGLDisableProgramProfiles = (PFNCGGLDISABLEPROGRAMPROFILESPROC)NULL;
PFNCGGLSETDEBUGMODEPROC qcgGLSetDebugMode = (PFNCGGLSETDEBUGMODEPROC)NULL;
/*
PFNCGGLCREATEBUFFERPROC qcgGLCreateBuffer = (PFNCGGLCREATEBUFFERPROC)NULL;
PFNCGGLGETBUFFEROBJECTPROC qcgGLGetBufferObject = (PFNCGGLGETBUFFEROBJECTPROC)NULL;
*/

#ifdef GET_PROCADDR
#	undef GET_PROCADDR
#endif

#define GET_PROCADDR(name, typename) \
	if((q##name = (typename)library.resolve(#name)) == NULL) \
	{ \
		failed++; \
	}


CGbool cgLoadLibrary()
{
	int failed = 0;

#if defined(Q_OS_DARWIN)
	QLibrary library("/System/Library/Frameworks/Cg.framework/Cg");
#else
	QLibrary library("Cg");
#endif
	
	if (!library.load())
	{
		return false;
	}

	/* 1.1 entry points */
	
	GET_PROCADDR(cgCompileProgram,PFNCGCOMPILEPROGRAMPROC)
	GET_PROCADDR(cgCopyProgram,PFNCGCOPYPROGRAMPROC)
	GET_PROCADDR(cgCreateContext,PFNCGCREATECONTEXTPROC)
	GET_PROCADDR(cgCreateProgram,PFNCGCREATEPROGRAMPROC)
	GET_PROCADDR(cgCreateProgramFromFile,PFNCGCREATEPROGRAMFROMFILEPROC)
	GET_PROCADDR(cgDestroyContext,PFNCGDESTROYCONTEXTPROC)
	GET_PROCADDR(cgDestroyProgram,PFNCGDESTROYPROGRAMPROC)
	GET_PROCADDR(cgGetArrayDimension,PFNCGGETARRAYDIMENSIONPROC)
	GET_PROCADDR(cgGetArrayParameter,PFNCGGETARRAYPARAMETERPROC)
	GET_PROCADDR(cgGetArraySize,PFNCGGETARRAYSIZEPROC)
	GET_PROCADDR(cgGetError,PFNCGGETERRORPROC)
	GET_PROCADDR(cgGetErrorCallback,PFNCGGETERRORCALLBACKPROC)
	GET_PROCADDR(cgGetErrorString,PFNCGGETERRORSTRINGPROC)
	GET_PROCADDR(cgGetFirstDependentParameter,PFNCGGETFIRSTDEPENDENTPARAMETERPROC)
	GET_PROCADDR(cgGetFirstLeafParameter,PFNCGGETFIRSTLEAFPARAMETERPROC)
	GET_PROCADDR(cgGetFirstParameter,PFNCGGETFIRSTPARAMETERPROC)
	GET_PROCADDR(cgGetFirstProgram,PFNCGGETFIRSTPROGRAMPROC)
	GET_PROCADDR(cgGetFirstStructParameter,PFNCGGETFIRSTSTRUCTPARAMETERPROC)
	GET_PROCADDR(cgGetLastListing,PFNCGGETLASTLISTINGPROC)
	GET_PROCADDR(cgGetNamedParameter,PFNCGGETNAMEDPARAMETERPROC)
	GET_PROCADDR(cgGetNextLeafParameter,PFNCGGETNEXTLEAFPARAMETERPROC)
	GET_PROCADDR(cgGetNextParameter,PFNCGGETNEXTPARAMETERPROC)
	GET_PROCADDR(cgGetNextProgram,PFNCGGETNEXTPROGRAMPROC)
	GET_PROCADDR(cgGetParameterBaseResource,PFNCGGETPARAMETERBASERESOURCEPROC)
	GET_PROCADDR(cgGetParameterDirection,PFNCGGETPARAMETERDIRECTIONPROC)
	GET_PROCADDR(cgGetParameterName,PFNCGGETPARAMETERNAMEPROC)
	GET_PROCADDR(cgGetParameterOrdinalNumber,PFNCGGETPARAMETERORDINALNUMBERPROC)
	GET_PROCADDR(cgGetParameterProgram,PFNCGGETPARAMETERPROGRAMPROC)
	GET_PROCADDR(cgGetParameterResource,PFNCGGETPARAMETERRESOURCEPROC)
	GET_PROCADDR(cgGetParameterResourceIndex,PFNCGGETPARAMETERRESOURCEINDEXPROC)
	GET_PROCADDR(cgGetParameterSemantic,PFNCGGETPARAMETERSEMANTICPROC)
	GET_PROCADDR(cgGetParameterType,PFNCGGETPARAMETERTYPEPROC)
	GET_PROCADDR(cgGetParameterValues,PFNCGGETPARAMETERVALUESPROC)
	GET_PROCADDR(cgGetParameterVariability,PFNCGGETPARAMETERVARIABILITYPROC)
	GET_PROCADDR(cgGetProfile,PFNCGGETPROFILEPROC)
	GET_PROCADDR(cgGetProfileString,PFNCGGETPROFILESTRINGPROC)
	GET_PROCADDR(cgGetProgramContext,PFNCGGETPROGRAMCONTEXTPROC)
	GET_PROCADDR(cgGetProgramProfile,PFNCGGETPROGRAMPROFILEPROC)
	GET_PROCADDR(cgGetProgramString,PFNCGGETPROGRAMSTRINGPROC)
	GET_PROCADDR(cgGetResource,PFNCGGETRESOURCEPROC)
	GET_PROCADDR(cgGetResourceString,PFNCGGETRESOURCESTRINGPROC)
	GET_PROCADDR(cgGetType,PFNCGGETTYPEPROC)
	GET_PROCADDR(cgGetTypeString,PFNCGGETTYPESTRINGPROC)
	GET_PROCADDR(cgIsContext,PFNCGISCONTEXTPROC)
	GET_PROCADDR(cgIsParameter,PFNCGISPARAMETERPROC)
	GET_PROCADDR(cgIsParameterReferenced,PFNCGISPARAMETERREFERENCEDPROC)
	GET_PROCADDR(cgIsProgram,PFNCGISPROGRAMPROC)
	GET_PROCADDR(cgIsProgramCompiled,PFNCGISPROGRAMCOMPILEDPROC)
	GET_PROCADDR(cgSetErrorCallback,PFNCGSETERRORCALLBACKPROC)

	/* 1.2 entry points */
	
	GET_PROCADDR(cgConnectParameter,PFNCGCONNECTPARAMETERPROC)
	GET_PROCADDR(cgCreateParameter,PFNCGCREATEPARAMETERPROC)
	GET_PROCADDR(cgCreateParameterArray,PFNCGCREATEPARAMETERARRAYPROC)
	GET_PROCADDR(cgCreateParameterMultiDimArray,PFNCGCREATEPARAMETERMULTIDIMARRAYPROC)
	GET_PROCADDR(cgDestroyParameter,PFNCGDESTROYPARAMETERPROC)
	GET_PROCADDR(cgDisconnectParameter,PFNCGDISCONNECTPARAMETERPROC)
	GET_PROCADDR(cgGetArrayType,PFNCGGETARRAYTYPEPROC)
	GET_PROCADDR(cgGetConnectedParameter,PFNCGGETCONNECTEDPARAMETERPROC)
	GET_PROCADDR(cgGetConnectedToParameter,PFNCGGETCONNECTEDTOPARAMETERPROC)
	GET_PROCADDR(cgGetEnum,PFNCGGETENUMPROC)
	GET_PROCADDR(cgGetEnumString,PFNCGGETENUMSTRINGPROC)
	GET_PROCADDR(cgGetLastErrorString,PFNCGGETLASTERRORSTRINGPROC)
	GET_PROCADDR(cgGetNamedProgramParameter,PFNCGGETNAMEDPROGRAMPARAMETERPROC)
	GET_PROCADDR(cgGetNamedStructParameter,PFNCGGETNAMEDSTRUCTPARAMETERPROC)
	GET_PROCADDR(cgGetNamedUserType,PFNCGGETNAMEDUSERTYPEPROC)
	GET_PROCADDR(cgGetNumConnectedToParameters,PFNCGGETNUMCONNECTEDTOPARAMETERSPROC)
	GET_PROCADDR(cgGetNumParentTypes,PFNCGGETNUMPARENTTYPESPROC)
	GET_PROCADDR(cgGetNumUserTypes,PFNCGGETNUMUSERTYPESPROC)
	GET_PROCADDR(cgGetParameterContext,PFNCGGETPARAMETERCONTEXTPROC)
	GET_PROCADDR(cgGetParameterIndex,PFNCGGETPARAMETERINDEXPROC)
	GET_PROCADDR(cgGetParameterNamedType,PFNCGGETPARAMETERNAMEDTYPEPROC)
	GET_PROCADDR(cgGetParentType,PFNCGGETPARENTTYPEPROC)
	GET_PROCADDR(cgGetString,PFNCGGETSTRINGPROC)
	GET_PROCADDR(cgGetUserType,PFNCGGETUSERTYPEPROC)
	GET_PROCADDR(cgIsInterfaceType,PFNCGISINTERFACETYPEPROC)
	GET_PROCADDR(cgIsParameterGlobal,PFNCGISPARAMETERGLOBALPROC)
	GET_PROCADDR(cgIsParentType,PFNCGISPARENTTYPEPROC)
	GET_PROCADDR(cgSetArraySize,PFNCGSETARRAYSIZEPROC)
	GET_PROCADDR(cgSetAutoCompile,PFNCGSETAUTOCOMPILEPROC)
	GET_PROCADDR(cgSetMatrixParameterdc,PFNCGSETMATRIXPARAMETERDCPROC)
	GET_PROCADDR(cgSetMatrixParameterdr,PFNCGSETMATRIXPARAMETERDRPROC)
	GET_PROCADDR(cgSetMatrixParameterfc,PFNCGSETMATRIXPARAMETERFCPROC)
	GET_PROCADDR(cgSetMatrixParameterfr,PFNCGSETMATRIXPARAMETERFRPROC)
	GET_PROCADDR(cgSetMultiDimArraySize,PFNCGSETMULTIDIMARRAYSIZEPROC)
	GET_PROCADDR(cgSetParameter1d,PFNCGSETPARAMETER1DPROC)
	GET_PROCADDR(cgSetParameter1dv,PFNCGSETPARAMETER1DVPROC)
	GET_PROCADDR(cgSetParameter1f,PFNCGSETPARAMETER1FPROC)
	GET_PROCADDR(cgSetParameter1fv,PFNCGSETPARAMETER1FVPROC)
	GET_PROCADDR(cgSetParameter2d,PFNCGSETPARAMETER2DPROC)
	GET_PROCADDR(cgSetParameter2dv,PFNCGSETPARAMETER2DVPROC)
	GET_PROCADDR(cgSetParameter2f,PFNCGSETPARAMETER2FPROC)
	GET_PROCADDR(cgSetParameter2fv,PFNCGSETPARAMETER2FVPROC)
	GET_PROCADDR(cgSetParameter3d,PFNCGSETPARAMETER3DPROC)
	GET_PROCADDR(cgSetParameter3dv,PFNCGSETPARAMETER3DVPROC)
	GET_PROCADDR(cgSetParameter3f,PFNCGSETPARAMETER3FPROC)
	GET_PROCADDR(cgSetParameter3fv,PFNCGSETPARAMETER3FVPROC)
	GET_PROCADDR(cgSetParameter4d,PFNCGSETPARAMETER4DPROC)
	GET_PROCADDR(cgSetParameter4dv,PFNCGSETPARAMETER4DVPROC)
	GET_PROCADDR(cgSetParameter4f,PFNCGSETPARAMETER4FPROC)
	GET_PROCADDR(cgSetParameter4fv,PFNCGSETPARAMETER4FVPROC)
	GET_PROCADDR(cgSetParameterSemantic,PFNCGSETPARAMETERSEMANTICPROC)
	GET_PROCADDR(cgSetParameterVariability,PFNCGSETPARAMETERVARIABILITYPROC)
	
	/* 1.4 entry points */
	
	GET_PROCADDR(cgAddStateEnumerant,PFNCGADDSTATEENUMERANTPROC)
	GET_PROCADDR(cgCallStateResetCallback,PFNCGCALLSTATERESETCALLBACKPROC)
	GET_PROCADDR(cgCallStateSetCallback,PFNCGCALLSTATESETCALLBACKPROC)
	GET_PROCADDR(cgCallStateValidateCallback,PFNCGCALLSTATEVALIDATECALLBACKPROC)
	GET_PROCADDR(cgCreateArraySamplerState,PFNCGCREATEARRAYSAMPLERSTATEPROC)
	GET_PROCADDR(cgCreateArrayState,PFNCGCREATEARRAYSTATEPROC)
	GET_PROCADDR(cgCreateEffect,PFNCGCREATEEFFECTPROC)
	GET_PROCADDR(cgCreateEffectFromFile,PFNCGCREATEEFFECTFROMFILEPROC)
	GET_PROCADDR(cgCreateProgramFromEffect,PFNCGCREATEPROGRAMFROMEFFECTPROC)
	GET_PROCADDR(cgCreateSamplerState,PFNCGCREATESAMPLERSTATEPROC)
	GET_PROCADDR(cgCreateState,PFNCGCREATESTATEPROC)
	GET_PROCADDR(cgDestroyEffect,PFNCGDESTROYEFFECTPROC)
	GET_PROCADDR(cgEvaluateProgram,PFNCGEVALUATEPROGRAMPROC)
	GET_PROCADDR(cgGetAnnotationName,PFNCGGETANNOTATIONNAMEPROC)
	GET_PROCADDR(cgGetAnnotationType,PFNCGGETANNOTATIONTYPEPROC)
	GET_PROCADDR(cgGetArrayTotalSize,PFNCGGETARRAYTOTALSIZEPROC)
	GET_PROCADDR(cgGetAutoCompile,PFNCGGETAUTOCOMPILEPROC)
	GET_PROCADDR(cgGetBoolStateAssignmentValues,PFNCGGETBOOLSTATEASSIGNMENTVALUESPROC)
	GET_PROCADDR(cgGetBooleanAnnotationValues,PFNCGGETBOOLEANANNOTATIONVALUESPROC)
	GET_PROCADDR(cgGetDependentAnnotationParameter,PFNCGGETDEPENDENTANNOTATIONPARAMETERPROC)
	GET_PROCADDR(cgGetDependentStateAssignmentParameter,PFNCGGETDEPENDENTSTATEASSIGNMENTPARAMETERPROC)
	GET_PROCADDR(cgGetEffectContext,PFNCGGETEFFECTCONTEXTPROC)
	GET_PROCADDR(cgGetEffectParameterBySemantic,PFNCGGETEFFECTPARAMETERBYSEMANTICPROC)
	GET_PROCADDR(cgGetErrorHandler,PFNCGGETERRORHANDLERPROC)
	GET_PROCADDR(cgGetFirstEffect,PFNCGGETFIRSTEFFECTPROC)
	GET_PROCADDR(cgGetFirstEffectParameter,PFNCGGETFIRSTEFFECTPARAMETERPROC)
	GET_PROCADDR(cgGetFirstError,PFNCGGETFIRSTERRORPROC)
	GET_PROCADDR(cgGetFirstLeafEffectParameter,PFNCGGETFIRSTLEAFEFFECTPARAMETERPROC)
	GET_PROCADDR(cgGetFirstParameterAnnotation,PFNCGGETFIRSTPARAMETERANNOTATIONPROC)
	GET_PROCADDR(cgGetFirstPass,PFNCGGETFIRSTPASSPROC)
	GET_PROCADDR(cgGetFirstPassAnnotation,PFNCGGETFIRSTPASSANNOTATIONPROC)
	GET_PROCADDR(cgGetFirstProgramAnnotation,PFNCGGETFIRSTPROGRAMANNOTATIONPROC)
	GET_PROCADDR(cgGetFirstSamplerState,PFNCGGETFIRSTSAMPLERSTATEPROC)
	GET_PROCADDR(cgGetFirstSamplerStateAssignment,PFNCGGETFIRSTSAMPLERSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgGetFirstState,PFNCGGETFIRSTSTATEPROC)
	GET_PROCADDR(cgGetFirstStateAssignment,PFNCGGETFIRSTSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgGetFirstTechnique,PFNCGGETFIRSTTECHNIQUEPROC)
	GET_PROCADDR(cgGetFirstTechniqueAnnotation,PFNCGGETFIRSTTECHNIQUEANNOTATIONPROC)
	GET_PROCADDR(cgGetFloatAnnotationValues,PFNCGGETFLOATANNOTATIONVALUESPROC)
	GET_PROCADDR(cgGetFloatStateAssignmentValues,PFNCGGETFLOATSTATEASSIGNMENTVALUESPROC)
	GET_PROCADDR(cgGetIntAnnotationValues,PFNCGGETINTANNOTATIONVALUESPROC)
	GET_PROCADDR(cgGetIntStateAssignmentValues,PFNCGGETINTSTATEASSIGNMENTVALUESPROC)
	GET_PROCADDR(cgGetMatrixParameterdc,PFNCGGETMATRIXPARAMETERDCPROC)
	GET_PROCADDR(cgGetMatrixParameterdr,PFNCGGETMATRIXPARAMETERDRPROC)
	GET_PROCADDR(cgGetMatrixParameterfc,PFNCGGETMATRIXPARAMETERFCPROC)
	GET_PROCADDR(cgGetMatrixParameterfr,PFNCGGETMATRIXPARAMETERFRPROC)
	GET_PROCADDR(cgGetMatrixParameteric,PFNCGGETMATRIXPARAMETERICPROC)
	GET_PROCADDR(cgGetMatrixParameterir,PFNCGGETMATRIXPARAMETERIRPROC)
	GET_PROCADDR(cgGetNamedEffectParameter,PFNCGGETNAMEDEFFECTPARAMETERPROC)
	GET_PROCADDR(cgGetNamedParameterAnnotation,PFNCGGETNAMEDPARAMETERANNOTATIONPROC)
	GET_PROCADDR(cgGetNamedPass,PFNCGGETNAMEDPASSPROC)
	GET_PROCADDR(cgGetNamedPassAnnotation,PFNCGGETNAMEDPASSANNOTATIONPROC)
	GET_PROCADDR(cgGetNamedProgramAnnotation,PFNCGGETNAMEDPROGRAMANNOTATIONPROC)
	GET_PROCADDR(cgGetNamedSamplerState,PFNCGGETNAMEDSAMPLERSTATEPROC)
	GET_PROCADDR(cgGetNamedSamplerStateAssignment,PFNCGGETNAMEDSAMPLERSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgGetNamedState,PFNCGGETNAMEDSTATEPROC)
	GET_PROCADDR(cgGetNamedStateAssignment,PFNCGGETNAMEDSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgGetNamedTechnique,PFNCGGETNAMEDTECHNIQUEPROC)
	GET_PROCADDR(cgGetNamedTechniqueAnnotation,PFNCGGETNAMEDTECHNIQUEANNOTATIONPROC)
	GET_PROCADDR(cgGetNextAnnotation,PFNCGGETNEXTANNOTATIONPROC)
	GET_PROCADDR(cgGetNextEffect,PFNCGGETNEXTEFFECTPROC)
	GET_PROCADDR(cgGetNextPass,PFNCGGETNEXTPASSPROC)
	GET_PROCADDR(cgGetNextState,PFNCGGETNEXTSTATEPROC)
	GET_PROCADDR(cgGetNextStateAssignment,PFNCGGETNEXTSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgGetNextTechnique,PFNCGGETNEXTTECHNIQUEPROC)
	GET_PROCADDR(cgGetNumDependentAnnotationParameters,PFNCGGETNUMDEPENDENTANNOTATIONPARAMETERSPROC)
	GET_PROCADDR(cgGetNumDependentStateAssignmentParameters,PFNCGGETNUMDEPENDENTSTATEASSIGNMENTPARAMETERSPROC)
	GET_PROCADDR(cgGetParameterBaseType,PFNCGGETPARAMETERBASETYPEPROC)
	GET_PROCADDR(cgGetParameterClass,PFNCGGETPARAMETERCLASSPROC)
	GET_PROCADDR(cgGetParameterColumns,PFNCGGETPARAMETERCOLUMNSPROC)
	GET_PROCADDR(cgGetParameterRows,PFNCGGETPARAMETERROWSPROC)
	GET_PROCADDR(cgGetParameterValuedc,PFNCGGETPARAMETERVALUEDCPROC)
	GET_PROCADDR(cgGetParameterValuedr,PFNCGGETPARAMETERVALUEDRPROC)
	GET_PROCADDR(cgGetParameterValuefc,PFNCGGETPARAMETERVALUEFCPROC)
	GET_PROCADDR(cgGetParameterValuefr,PFNCGGETPARAMETERVALUEFRPROC)
	GET_PROCADDR(cgGetParameterValueic,PFNCGGETPARAMETERVALUEICPROC)
	GET_PROCADDR(cgGetParameterValueir,PFNCGGETPARAMETERVALUEIRPROC)
	GET_PROCADDR(cgGetPassName,PFNCGGETPASSNAMEPROC)
	GET_PROCADDR(cgGetPassTechnique,PFNCGGETPASSTECHNIQUEPROC)
	GET_PROCADDR(cgGetProgramOptions,PFNCGGETPROGRAMOPTIONSPROC)
	GET_PROCADDR(cgGetProgramStateAssignmentValue,PFNCGGETPROGRAMSTATEASSIGNMENTVALUEPROC)
	GET_PROCADDR(cgGetSamplerStateAssignmentParameter,PFNCGGETSAMPLERSTATEASSIGNMENTPARAMETERPROC)
	GET_PROCADDR(cgGetSamplerStateAssignmentState,PFNCGGETSAMPLERSTATEASSIGNMENTSTATEPROC)
	GET_PROCADDR(cgGetSamplerStateAssignmentValue,PFNCGGETSAMPLERSTATEASSIGNMENTVALUEPROC)
	GET_PROCADDR(cgGetStateAssignmentIndex,PFNCGGETSTATEASSIGNMENTINDEXPROC)
	GET_PROCADDR(cgGetStateAssignmentPass,PFNCGGETSTATEASSIGNMENTPASSPROC)
	GET_PROCADDR(cgGetStateAssignmentState,PFNCGGETSTATEASSIGNMENTSTATEPROC)
	GET_PROCADDR(cgGetStateName,PFNCGGETSTATENAMEPROC)
	GET_PROCADDR(cgGetStateResetCallback,PFNCGGETSTATERESETCALLBACKPROC)
	GET_PROCADDR(cgGetStateSetCallback,PFNCGGETSTATESETCALLBACKPROC)
	GET_PROCADDR(cgGetStateType,PFNCGGETSTATETYPEPROC)
	GET_PROCADDR(cgGetStateValidateCallback,PFNCGGETSTATEVALIDATECALLBACKPROC)
	GET_PROCADDR(cgGetStringAnnotationValue,PFNCGGETSTRINGANNOTATIONVALUEPROC)
	GET_PROCADDR(cgGetStringParameterValue,PFNCGGETSTRINGPARAMETERVALUEPROC)
	GET_PROCADDR(cgGetStringStateAssignmentValue,PFNCGGETSTRINGSTATEASSIGNMENTVALUEPROC)
	GET_PROCADDR(cgGetTechniqueEffect,PFNCGGETTECHNIQUEEFFECTPROC)
	GET_PROCADDR(cgGetTechniqueName,PFNCGGETTECHNIQUENAMEPROC)
	GET_PROCADDR(cgGetTextureStateAssignmentValue,PFNCGGETTEXTURESTATEASSIGNMENTVALUEPROC)
	GET_PROCADDR(cgIsAnnotation,PFNCGISANNOTATIONPROC)
	GET_PROCADDR(cgIsEffect,PFNCGISEFFECTPROC)
	GET_PROCADDR(cgIsParameterUsed,PFNCGISPARAMETERUSEDPROC)
	GET_PROCADDR(cgIsPass,PFNCGISPASSPROC)
	GET_PROCADDR(cgIsState,PFNCGISSTATEPROC)
	GET_PROCADDR(cgIsStateAssignment,PFNCGISSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgIsTechnique,PFNCGISTECHNIQUEPROC)
	GET_PROCADDR(cgIsTechniqueValidated,PFNCGISTECHNIQUEVALIDATEDPROC)
	GET_PROCADDR(cgResetPassState,PFNCGRESETPASSSTATEPROC)
	GET_PROCADDR(cgSetErrorHandler,PFNCGSETERRORHANDLERPROC)
	GET_PROCADDR(cgSetLastListing,PFNCGSETLASTLISTINGPROC)
	GET_PROCADDR(cgSetMatrixParameteric,PFNCGSETMATRIXPARAMETERICPROC)
	GET_PROCADDR(cgSetMatrixParameterir,PFNCGSETMATRIXPARAMETERIRPROC)
	GET_PROCADDR(cgSetParameter1i,PFNCGSETPARAMETER1IPROC)
	GET_PROCADDR(cgSetParameter1iv,PFNCGSETPARAMETER1IVPROC)
	GET_PROCADDR(cgSetParameter2i,PFNCGSETPARAMETER2IPROC)
	GET_PROCADDR(cgSetParameter2iv,PFNCGSETPARAMETER2IVPROC)
	GET_PROCADDR(cgSetParameter3i,PFNCGSETPARAMETER3IPROC)
	GET_PROCADDR(cgSetParameter3iv,PFNCGSETPARAMETER3IVPROC)
	GET_PROCADDR(cgSetParameter4i,PFNCGSETPARAMETER4IPROC)
	GET_PROCADDR(cgSetParameter4iv,PFNCGSETPARAMETER4IVPROC)
	GET_PROCADDR(cgSetParameterValuedc,PFNCGSETPARAMETERVALUEDCPROC)
	GET_PROCADDR(cgSetParameterValuedr,PFNCGSETPARAMETERVALUEDRPROC)
	GET_PROCADDR(cgSetParameterValuefc,PFNCGSETPARAMETERVALUEFCPROC)
	GET_PROCADDR(cgSetParameterValuefr,PFNCGSETPARAMETERVALUEFRPROC)
	GET_PROCADDR(cgSetParameterValueic,PFNCGSETPARAMETERVALUEICPROC)
	GET_PROCADDR(cgSetParameterValueir,PFNCGSETPARAMETERVALUEIRPROC)
	GET_PROCADDR(cgSetPassProgramParameters,PFNCGSETPASSPROGRAMPARAMETERSPROC)
	GET_PROCADDR(cgSetPassState,PFNCGSETPASSSTATEPROC)
	GET_PROCADDR(cgSetProgramProfile,PFNCGSETPROGRAMPROFILEPROC)
	GET_PROCADDR(cgSetSamplerState,PFNCGSETSAMPLERSTATEPROC)
	GET_PROCADDR(cgSetStateCallbacks,PFNCGSETSTATECALLBACKSPROC)
	GET_PROCADDR(cgSetStringParameterValue,PFNCGSETSTRINGPARAMETERVALUEPROC)
	GET_PROCADDR(cgValidateTechnique,PFNCGVALIDATETECHNIQUEPROC)

	if (failed) 
	{
		return false;
	}
	
	/* 1.5 entry points */

	GET_PROCADDR(cgSetEffectName,PFNCGSETEFFECTNAMEPROC)
	GET_PROCADDR(cgGetEffectName,PFNCGGETEFFECTNAMEPROC)
	GET_PROCADDR(cgGetNamedEffect,PFNCGGETNAMEDEFFECTPROC)
	GET_PROCADDR(cgCreateEffectParameter,PFNCGCREATEEFFECTPARAMETERPROC)
	GET_PROCADDR(cgCreateTechnique,PFNCGCREATETECHNIQUEPROC)
	GET_PROCADDR(cgCreatePass,PFNCGCREATEPASSPROC)
	GET_PROCADDR(cgCreateStateAssignment,PFNCGCREATESTATEASSIGNMENTPROC)
	GET_PROCADDR(cgCreateSamplerStateAssignment,PFNCGCREATESAMPLERSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetFloatStateAssignment,PFNCGSETFLOATSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetIntStateAssignment,PFNCGSETINTSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetBoolStateAssignment,PFNCGSETBOOLSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetStringStateAssignment,PFNCGSETSTRINGSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetProgramStateAssignment,PFNCGSETPROGRAMSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetSamplerStateAssignment,PFNCGSETSAMPLERSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetTextureStateAssignment,PFNCGSETTEXTURESTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetFloatArrayStateAssignment,PFNCGSETFLOATARRAYSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetIntArrayStateAssignment,PFNCGSETINTARRAYSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgSetBoolArrayStateAssignment,PFNCGSETBOOLARRAYSTATEASSIGNMENTPROC)
	GET_PROCADDR(cgCreateTechniqueAnnotation,PFNCGCREATETECHNIQUEANNOTATIONPROC)
	GET_PROCADDR(cgCreatePassAnnotation,PFNCGCREATEPASSANNOTATIONPROC)
	GET_PROCADDR(cgCreateParameterAnnotation,PFNCGCREATEPARAMETERANNOTATIONPROC)
	GET_PROCADDR(cgCreateProgramAnnotation,PFNCGCREATEPROGRAMANNOTATIONPROC)
	GET_PROCADDR(cgSetIntAnnotation,PFNCGSETINTANNOTATIONPROC)
	GET_PROCADDR(cgSetFloatAnnotation,PFNCGSETFLOATANNOTATIONPROC)
	GET_PROCADDR(cgSetBoolAnnotation,PFNCGSETBOOLANNOTATIONPROC)
	GET_PROCADDR(cgSetStringAnnotation,PFNCGSETSTRINGANNOTATIONPROC)
	GET_PROCADDR(cgGetStateEnumerantName,PFNCGGETSTATEENUMERANTNAMEPROC)
	GET_PROCADDR(cgGetStateEnumerantValue,PFNCGGETSTATEENUMERANTVALUEPROC)
	GET_PROCADDR(cgGetParameterEffect,PFNCGGETPARAMETEREFFECTPROC)
	GET_PROCADDR(cgGetTypeClass,PFNCGGETTYPECLASSPROC)
	GET_PROCADDR(cgGetTypeBase,PFNCGGETTYPEBASEPROC)
	GET_PROCADDR(cgGetTypeSizes,PFNCGGETTYPESIZESPROC)
	GET_PROCADDR(cgGetMatrixSize,PFNCGGETMATRIXSIZEPROC)

	GET_PROCADDR(cgGetProfileDomain,PFNCGGETPROFILEDOMAINPROC)
	GET_PROCADDR(cgCombinePrograms,PFNCGCOMBINEPROGRAMSPROC)
	GET_PROCADDR(cgCombinePrograms2,PFNCGCOMBINEPROGRAMS2PROC)
	GET_PROCADDR(cgCombinePrograms3,PFNCGCOMBINEPROGRAMS3PROC)
	GET_PROCADDR(cgGetNumProgramDomains,PFNCGGETNUMPROGRAMDOMAINSPROC)
	GET_PROCADDR(cgGetProgramDomainProfile,PFNCGGETPROGRAMDOMAINPROFILEPROC)
	GET_PROCADDR(cgGetBoolAnnotationValues,PFNCGGETBOOLANNOTATIONVALUESPROC)
	GET_PROCADDR(cgCreateEffectAnnotation,PFNCGCREATEEFFECTANNOTATIONPROC)
	GET_PROCADDR(cgGetNamedEffectAnnotation,PFNCGGETNAMEDEFFECTANNOTATIONPROC)
	GET_PROCADDR(cgGetFirstEffectAnnotation,PFNCGGETFIRSTEFFECTANNOTATIONPROC)
	GET_PROCADDR(cgCreateEffectParameterArray,PFNCGCREATEEFFECTPARAMETERARRAYPROC)
	GET_PROCADDR(cgCreateEffectParameterMultiDimArray,PFNCGCREATEEFFECTPARAMETERMULTIDIMARRAYPROC)
	GET_PROCADDR(cgCreateStateAssignmentIndex,PFNCGCREATESTATEASSIGNMENTINDEXPROC)
	GET_PROCADDR(cgGetNamedSubParameter,PFNCGGETNAMEDSUBPARAMETERPROC)
	GET_PROCADDR(cgGetStateContext,PFNCGGETSTATECONTEXTPROC)

	/* 2.0 entry points */
	/*
	GET_PROCADDR(cgGetProgramInput,PFNCGGETPROGRAMINPUTPROC)
	GET_PROCADDR(cgGetProgramOutput,PFNCGGETPROGRAMOUTPUTPROC)
	GET_PROCADDR(cgCreateObj,PFNCGCREATEOBJPROC)
	GET_PROCADDR(cgCreateObjFromFile,PFNCGCREATEOBJFROMFILEPROC)
	GET_PROCADDR(cgDestroyObj,PFNCGDESTROYOBJPROC)
	GET_PROCADDR(cgSetParameterSettingMode,PFNCGSETPARAMETERSETTINGMODEPROC)
	GET_PROCADDR(cgGetParameterSettingMode,PFNCGGETPARAMETERSETTINGMODEPROC)
	GET_PROCADDR(cgUpdateProgramParameters,PFNCGUPDATEPROGRAMPARAMETERSPROC)
	GET_PROCADDR(cgSetLockingPolicy,PFNCGSETLOCKINGPOLICYPROC)
	GET_PROCADDR(cgGetLockingPolicy,PFNCGGETLOCKINGPOLICYPROC)
	GET_PROCADDR(cgSetSemanticCasePolicy,PFNCGSETSEMANTICCASEPOLICYPROC)
	GET_PROCADDR(cgGetSemanticCasePolicy,PFNCGGETSEMANTICCASEPOLICYPROC)
	GET_PROCADDR(cgGetConnectedStateAssignmentParameter,PFNCGGETCONNECTEDSTATEASSIGNMENTPARAMETERPROC)
	GET_PROCADDR(cgGetStringAnnotationValues,PFNCGGETSTRINGANNOTATIONVALUESPROC)
	GET_PROCADDR(cgSetBufferData,PFNCGSETBUFFERDATAPROC)
	GET_PROCADDR(cgSetBufferSubData,PFNCGSETBUFFERSUBDATAPROC)
	GET_PROCADDR(cgCreateBuffer,PFNCGCREATEBUFFERPROC)
	GET_PROCADDR(cgDestroyBuffer,PFNCGDESTROYBUFFERPROC)
	GET_PROCADDR(cgGetBufferSize,PFNCGGETBUFFERSIZEPROC)
	GET_PROCADDR(cgGetParameterBufferIndex,PFNCGGETPARAMETERBUFFERINDEXPROC)
	GET_PROCADDR(cgGetParameterBufferOffset,PFNCGGETPARAMETERBUFFEROFFSETPROC)
	GET_PROCADDR(cgGetParameterResourceSize,PFNCGGETPARAMETERRESOURCESIZEPROC)
	GET_PROCADDR(cgGetProgramBuffer,PFNCGGETPROGRAMBUFFERPROC)
	GET_PROCADDR(cgMapBuffer,PFNCGMAPBUFFERPROC)
	GET_PROCADDR(cgSetProgramBuffer,PFNCGSETPROGRAMBUFFERPROC)
	GET_PROCADDR(cgUnmapBuffer,PFNCGUNMAPBUFFERPROC)
	*/
	return true;
}


CGbool cgGLLoadLibrary()
{
	int failed = 0;
	
#if defined(Q_OS_DARWIN)
	QLibrary library("/System/Library/Frameworks/Cg.framework/CgGL");
#else
	QLibrary library("CgGL");
#endif
	
	if (!library.load())
	{
		return false;
	}

	/* 1.1 entry points */
	
	GET_PROCADDR(cgGLBindProgram,PFNCGGLBINDPROGRAMPROC)
	GET_PROCADDR(cgGLDisableClientState,PFNCGGLDISABLECLIENTSTATEPROC)
	GET_PROCADDR(cgGLDisableProfile,PFNCGGLDISABLEPROFILEPROC)
	GET_PROCADDR(cgGLDisableTextureParameter,PFNCGGLDISABLETEXTUREPARAMETERPROC)
	GET_PROCADDR(cgGLEnableClientState,PFNCGGLENABLECLIENTSTATEPROC)
	GET_PROCADDR(cgGLEnableProfile,PFNCGGLENABLEPROFILEPROC)
	GET_PROCADDR(cgGLEnableTextureParameter,PFNCGGLENABLETEXTUREPARAMETERPROC)
	GET_PROCADDR(cgGLGetLatestProfile,PFNCGGLGETLATESTPROFILEPROC)
	GET_PROCADDR(cgGLGetMatrixParameterArraydc,PFNCGGLGETMATRIXPARAMETERARRAYDCPROC)
	GET_PROCADDR(cgGLGetMatrixParameterArraydr,PFNCGGLGETMATRIXPARAMETERARRAYDRPROC)
	GET_PROCADDR(cgGLGetMatrixParameterArrayfc,PFNCGGLGETMATRIXPARAMETERARRAYFCPROC)
	GET_PROCADDR(cgGLGetMatrixParameterArrayfr,PFNCGGLGETMATRIXPARAMETERARRAYFRPROC)
	GET_PROCADDR(cgGLGetMatrixParameterdc,PFNCGGLGETMATRIXPARAMETERDCPROC)
	GET_PROCADDR(cgGLGetMatrixParameterdr,PFNCGGLGETMATRIXPARAMETERDRPROC)
	GET_PROCADDR(cgGLGetMatrixParameterfc,PFNCGGLGETMATRIXPARAMETERFCPROC)
	GET_PROCADDR(cgGLGetMatrixParameterfr,PFNCGGLGETMATRIXPARAMETERFRPROC)
	GET_PROCADDR(cgGLGetParameter1d,PFNCGGLGETPARAMETER1DPROC)
	GET_PROCADDR(cgGLGetParameter1f,PFNCGGLGETPARAMETER1FPROC)
	GET_PROCADDR(cgGLGetParameter2d,PFNCGGLGETPARAMETER2DPROC)
	GET_PROCADDR(cgGLGetParameter2f,PFNCGGLGETPARAMETER2FPROC)
	GET_PROCADDR(cgGLGetParameter3d,PFNCGGLGETPARAMETER3DPROC)
	GET_PROCADDR(cgGLGetParameter3f,PFNCGGLGETPARAMETER3FPROC)
	GET_PROCADDR(cgGLGetParameter4d,PFNCGGLGETPARAMETER4DPROC)
	GET_PROCADDR(cgGLGetParameter4f,PFNCGGLGETPARAMETER4FPROC)
	GET_PROCADDR(cgGLGetParameterArray1d,PFNCGGLGETPARAMETERARRAY1DPROC)
	GET_PROCADDR(cgGLGetParameterArray1f,PFNCGGLGETPARAMETERARRAY1FPROC)
	GET_PROCADDR(cgGLGetParameterArray2d,PFNCGGLGETPARAMETERARRAY2DPROC)
	GET_PROCADDR(cgGLGetParameterArray2f,PFNCGGLGETPARAMETERARRAY2FPROC)
	GET_PROCADDR(cgGLGetParameterArray3d,PFNCGGLGETPARAMETERARRAY3DPROC)
	GET_PROCADDR(cgGLGetParameterArray3f,PFNCGGLGETPARAMETERARRAY3FPROC)
	GET_PROCADDR(cgGLGetParameterArray4d,PFNCGGLGETPARAMETERARRAY4DPROC)
	GET_PROCADDR(cgGLGetParameterArray4f,PFNCGGLGETPARAMETERARRAY4FPROC)
	GET_PROCADDR(cgGLGetTextureEnum,PFNCGGLGETTEXTUREENUMPROC)
	GET_PROCADDR(cgGLGetTextureParameter,PFNCGGLGETTEXTUREPARAMETERPROC)
	GET_PROCADDR(cgGLIsProfileSupported,PFNCGGLISPROFILESUPPORTEDPROC)
	GET_PROCADDR(cgGLLoadProgram,PFNCGGLLOADPROGRAMPROC)
	GET_PROCADDR(cgGLSetMatrixParameterArraydc,PFNCGGLSETMATRIXPARAMETERARRAYDCPROC)
	GET_PROCADDR(cgGLSetMatrixParameterArraydr,PFNCGGLSETMATRIXPARAMETERARRAYDRPROC)
	GET_PROCADDR(cgGLSetMatrixParameterArrayfc,PFNCGGLSETMATRIXPARAMETERARRAYFCPROC)
	GET_PROCADDR(cgGLSetMatrixParameterArrayfr,PFNCGGLSETMATRIXPARAMETERARRAYFRPROC)
	GET_PROCADDR(cgGLSetMatrixParameterdc,PFNCGGLSETMATRIXPARAMETERDCPROC)
	GET_PROCADDR(cgGLSetMatrixParameterdr,PFNCGGLSETMATRIXPARAMETERDRPROC)
	GET_PROCADDR(cgGLSetMatrixParameterfc,PFNCGGLSETMATRIXPARAMETERFCPROC)
	GET_PROCADDR(cgGLSetMatrixParameterfr,PFNCGGLSETMATRIXPARAMETERFRPROC)
	GET_PROCADDR(cgGLSetOptimalOptions,PFNCGGLSETOPTIMALOPTIONSPROC)
	GET_PROCADDR(cgGLSetParameter1d,PFNCGGLSETPARAMETER1DPROC)
	GET_PROCADDR(cgGLSetParameter1dv,PFNCGGLSETPARAMETER1DVPROC)
	GET_PROCADDR(cgGLSetParameter1f,PFNCGGLSETPARAMETER1FPROC)
	GET_PROCADDR(cgGLSetParameter1fv,PFNCGGLSETPARAMETER1FVPROC)
	GET_PROCADDR(cgGLSetParameter2d,PFNCGGLSETPARAMETER2DPROC)
	GET_PROCADDR(cgGLSetParameter2dv,PFNCGGLSETPARAMETER2DVPROC)
	GET_PROCADDR(cgGLSetParameter2f,PFNCGGLSETPARAMETER2FPROC)
	GET_PROCADDR(cgGLSetParameter2fv,PFNCGGLSETPARAMETER2FVPROC)
	GET_PROCADDR(cgGLSetParameter3d,PFNCGGLSETPARAMETER3DPROC)
	GET_PROCADDR(cgGLSetParameter3dv,PFNCGGLSETPARAMETER3DVPROC)
	GET_PROCADDR(cgGLSetParameter3f,PFNCGGLSETPARAMETER3FPROC)
	GET_PROCADDR(cgGLSetParameter3fv,PFNCGGLSETPARAMETER3FVPROC)
	GET_PROCADDR(cgGLSetParameter4d,PFNCGGLSETPARAMETER4DPROC)
	GET_PROCADDR(cgGLSetParameter4dv,PFNCGGLSETPARAMETER4DVPROC)
	GET_PROCADDR(cgGLSetParameter4f,PFNCGGLSETPARAMETER4FPROC)
	GET_PROCADDR(cgGLSetParameter4fv,PFNCGGLSETPARAMETER4FVPROC)
	GET_PROCADDR(cgGLSetParameterArray1d,PFNCGGLSETPARAMETERARRAY1DPROC)
	GET_PROCADDR(cgGLSetParameterArray1f,PFNCGGLSETPARAMETERARRAY1FPROC)
	GET_PROCADDR(cgGLSetParameterArray2d,PFNCGGLSETPARAMETERARRAY2DPROC)
	GET_PROCADDR(cgGLSetParameterArray2f,PFNCGGLSETPARAMETERARRAY2FPROC)
	GET_PROCADDR(cgGLSetParameterArray3d,PFNCGGLSETPARAMETERARRAY3DPROC)
	GET_PROCADDR(cgGLSetParameterArray3f,PFNCGGLSETPARAMETERARRAY3FPROC)
	GET_PROCADDR(cgGLSetParameterArray4d,PFNCGGLSETPARAMETERARRAY4DPROC)
	GET_PROCADDR(cgGLSetParameterArray4f,PFNCGGLSETPARAMETERARRAY4FPROC)
	GET_PROCADDR(cgGLSetParameterPointer,PFNCGGLSETPARAMETERPOINTERPROC)
	GET_PROCADDR(cgGLSetStateMatrixParameter,PFNCGGLSETSTATEMATRIXPARAMETERPROC)
	GET_PROCADDR(cgGLSetTextureParameter,PFNCGGLSETTEXTUREPARAMETERPROC)
	
	/* 1.2 entry points */
	
	GET_PROCADDR(cgGLGetManageTextureParameters,PFNCGGLGETMANAGETEXTUREPARAMETERSPROC)
	GET_PROCADDR(cgGLGetProgramID,PFNCGGLGETPROGRAMIDPROC)
	GET_PROCADDR(cgGLIsProgramLoaded,PFNCGGLISPROGRAMLOADEDPROC)
	GET_PROCADDR(cgGLSetManageTextureParameters,PFNCGGLSETMANAGETEXTUREPARAMETERSPROC)
	GET_PROCADDR(cgGLUnbindProgram,PFNCGGLUNBINDPROGRAMPROC)
	
	/* 1.4 entry points */
	
	GET_PROCADDR(cgGLRegisterStates,PFNCGGLREGISTERSTATESPROC)
	GET_PROCADDR(cgGLSetupSampler,PFNCGGLSETUPSAMPLERPROC)
	
	if (failed) {
		return false;
	}
	
	/* 1.5 entry points */
	
	GET_PROCADDR(cgGLEnableProgramProfiles,PFNCGGLENABLEPROGRAMPROFILESPROC)
	GET_PROCADDR(cgGLDisableProgramProfiles,PFNCGGLDISABLEPROGRAMPROFILESPROC)
	GET_PROCADDR(cgGLSetDebugMode,PFNCGGLSETDEBUGMODEPROC)
	
	/* 2.0 entry points */
	/*
	GET_PROCADDR(cgGLCreateBuffer,PFNCGGLCREATEBUFFERPROC)
	GET_PROCADDR(cgGLGetBufferObject,PFNCGGLGETBUFFEROBJECTPROC)
	*/
	return true;
}

